+ scope "/", Pleroma.Web.MastodonAPI do
+ pipe_through :mastodon_html
+
+ get "/web/login", MastodonAPIController, :login
+ post "/web/login", MastodonAPIController, :login_post
+ get "/web/*path", MastodonAPIController, :index
+ delete "/auth/sign_out", MastodonAPIController, :logout
+ end
+
+ pipeline :remote_media do
+ plug :accepts, ["html"]
+ end
+ scope "/proxy/", Pleroma.Web.MediaProxy do
+ pipe_through :remote_media
+ get "/:sig/:url", MediaProxyController, :remote
+ end
+