+ pipeline :config do
+ plug :accepts, ["json", "xml"]
+ end
+
+ pipeline :oauth do
+ plug :accepts, ["html", "json"]
+ end
+
+ scope "/oauth", Pleroma.Web.OAuth do
+ get "/authorize", OAuthController, :authorize
+ post "/authorize", OAuthController, :create_authorization
+ post "/token", OAuthController, :token_exchange
+ end
+
+ scope "/api/v1", Pleroma.Web.MastodonAPI do