@@ -109,14 +109,16 @@ func InitServer(config *config.Config) {
109109
110110 // Posts
111111 AddV1Path (app .Get , "/statuses/home_timeline.:filetype" , home_timeline )
112+ AddV11Path (app .Get , "/timeline/home.:filetype" , home_timeline ) // todo: make correct
112113 AddV1Path (app .Get , "/statuses/friends_timeline.:filetype" , home_timeline )
113114 AddV1Path (app .Get , "/statuses/user_timeline.:filetype" , user_timeline )
114115 AddV1Path (app .Get , "/statuses/user_timeline/*" , HandleFiletypeSplitter (user_timeline ))
115116 AddV1Path (app .Get , "/statuses/mentions.:filetype" , mentions_timeline )
116117 AddV1Path (app .Get , "/favorites/toptweets.:filetype" , hot_post_timeline )
117- AddV1Path (app .Get , "/tatuses /media_timeline.:filetype" , media_timeline )
118+ AddV1Path (app .Get , "/statuses /media_timeline.:filetype" , media_timeline )
118119 AddV1Path (app .Get , "/statuses/show/:id.:filetype" , GetStatusFromId )
119120 app .Get ("/i/statuses/:id/activity/summary.:filetype" , TweetInfo )
121+ app .Get ("/1.1/statuses/:id/activity/summary.:filetype" , TweetInfo )
120122 AddV1Path (app .Get , "/related_results/show/:id.:filetype" , RelatedResults )
121123
122124 // Users
@@ -148,6 +150,9 @@ func InitServer(config *config.Config) {
148150 app .Get ("/i/search/typeahead.:filetype" , SearchAhead )
149151 app .Get ("/i/activity/about_me.:filetype" , GetMyActivity )
150152
153+ app .Get ("/1.1/search/typeahead.:filetype" , SearchAhead )
154+ app .Get ("/1.1/activity/about_me.:filetype" , GetMyActivity )
155+
151156 // Discover
152157 AddV1Path (app .Get , "/trends/:woeid.:filetype" , trends_woeid )
153158 AddV1Path (app .Get , "/trends/current.:filetype" , trends_woeid )
@@ -156,6 +161,8 @@ func InitServer(config *config.Config) {
156161 app .Get ("/i/search.:filetype" , InternalSearch )
157162 app .Get ("/i/discovery.:filetype" , discovery )
158163
164+ app .Get ("/1.1/discovery/universal.:filetype" , discovery )
165+
159166 // Lists
160167 AddV1Path (app .Get , "/lists.:filetype" , GetUsersLists )
161168 AddV1Path (app .Get , "/:user/lists.:filetype" , GetUsersLists )
@@ -225,6 +232,11 @@ func AddV1Path(function func(string, ...fiber.Handler) fiber.Router, url string,
225232 function (fmt .Sprintf ("/1.1%s" , url ), handler )
226233}
227234
235+ func AddV11Path (function func (string , ... fiber.Handler ) fiber.Router , url string , handler fiber.Handler ) {
236+ function (url , handler )
237+ function (fmt .Sprintf ("/1.1%s" , url ), handler )
238+ }
239+
228240func GetUserSpecifiedInRequest (c * fiber.Ctx , no_value_default * string ) (* string , error ) {
229241 var ok bool
230242 actor := c .FormValue ("user_id" )
0 commit comments