- get "/help/test", TwitterAPI.UtilController, :help_test
- post "/help/test", TwitterAPI.UtilController, :help_test
- get "/statusnet/config", TwitterAPI.UtilController, :config
- get "/statusnet/version", TwitterAPI.UtilController, :version
+ scope "/api/v1", Pleroma.Web.MastodonAPI do
+ pipe_through(:api)
+ get("/instance", MastodonAPIController, :masto_instance)
+ get("/instance/peers", MastodonAPIController, :peers)
+ post("/apps", MastodonAPIController, :create_app)
+ get("/custom_emojis", MastodonAPIController, :custom_emojis)
+
+ get("/timelines/public", MastodonAPIController, :public_timeline)
+ get("/timelines/tag/:tag", MastodonAPIController, :hashtag_timeline)
+ get("/timelines/list/:list_id", MastodonAPIController, :list_timeline)
+
+ get("/statuses/:id", MastodonAPIController, :get_status)
+ get("/statuses/:id/context", MastodonAPIController, :get_context)
+ get("/statuses/:id/card", MastodonAPIController, :empty_object)
+ get("/statuses/:id/favourited_by", MastodonAPIController, :favourited_by)
+ get("/statuses/:id/reblogged_by", MastodonAPIController, :reblogged_by)
+
+ get("/accounts/:id/statuses", MastodonAPIController, :user_statuses)
+ get("/accounts/:id/followers", MastodonAPIController, :followers)
+ get("/accounts/:id/following", MastodonAPIController, :following)
+ get("/accounts/:id", MastodonAPIController, :user)
+
+ get("/trends", MastodonAPIController, :empty_array)
+
+ get("/search", MastodonAPIController, :search)