1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.Router do
6 use Pleroma.Web, :router
9 plug(:accepts, ["html"])
15 plug(Pleroma.Plugs.OAuthPlug)
19 plug(:accepts, ["json"])
21 plug(Pleroma.Plugs.OAuthPlug)
22 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
23 plug(Pleroma.Plugs.UserFetcherPlug)
24 plug(Pleroma.Plugs.SessionAuthenticationPlug)
25 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
26 plug(Pleroma.Plugs.AuthenticationPlug)
27 plug(Pleroma.Plugs.UserEnabledPlug)
28 plug(Pleroma.Plugs.SetUserSessionIdPlug)
29 plug(Pleroma.Plugs.EnsureUserKeyPlug)
30 plug(Pleroma.Plugs.IdempotencyPlug)
33 pipeline :authenticated_api do
34 plug(:accepts, ["json"])
36 plug(Pleroma.Plugs.OAuthPlug)
37 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
38 plug(Pleroma.Plugs.UserFetcherPlug)
39 plug(Pleroma.Plugs.SessionAuthenticationPlug)
40 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
41 plug(Pleroma.Plugs.AuthenticationPlug)
42 plug(Pleroma.Plugs.UserEnabledPlug)
43 plug(Pleroma.Plugs.SetUserSessionIdPlug)
44 plug(Pleroma.Plugs.EnsureAuthenticatedPlug)
45 plug(Pleroma.Plugs.IdempotencyPlug)
48 pipeline :admin_api do
49 plug(:accepts, ["json"])
51 plug(Pleroma.Plugs.OAuthPlug)
52 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
53 plug(Pleroma.Plugs.UserFetcherPlug)
54 plug(Pleroma.Plugs.SessionAuthenticationPlug)
55 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
56 plug(Pleroma.Plugs.AuthenticationPlug)
57 plug(Pleroma.Plugs.AdminSecretAuthenticationPlug)
58 plug(Pleroma.Plugs.UserEnabledPlug)
59 plug(Pleroma.Plugs.SetUserSessionIdPlug)
60 plug(Pleroma.Plugs.EnsureAuthenticatedPlug)
61 plug(Pleroma.Plugs.UserIsAdminPlug)
62 plug(Pleroma.Plugs.IdempotencyPlug)
65 pipeline :mastodon_html do
66 plug(:accepts, ["html"])
68 plug(Pleroma.Plugs.OAuthPlug)
69 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
70 plug(Pleroma.Plugs.UserFetcherPlug)
71 plug(Pleroma.Plugs.SessionAuthenticationPlug)
72 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
73 plug(Pleroma.Plugs.AuthenticationPlug)
74 plug(Pleroma.Plugs.UserEnabledPlug)
75 plug(Pleroma.Plugs.SetUserSessionIdPlug)
76 plug(Pleroma.Plugs.EnsureUserKeyPlug)
79 pipeline :pleroma_html do
80 plug(:accepts, ["html"])
82 plug(Pleroma.Plugs.OAuthPlug)
83 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
84 plug(Pleroma.Plugs.UserFetcherPlug)
85 plug(Pleroma.Plugs.SessionAuthenticationPlug)
86 plug(Pleroma.Plugs.AuthenticationPlug)
87 plug(Pleroma.Plugs.EnsureUserKeyPlug)
90 pipeline :oauth_read_or_public do
91 plug(Pleroma.Plugs.OAuthScopesPlug, %{
93 fallback: :proceed_unauthenticated
96 plug(Pleroma.Plugs.EnsurePublicOrAuthenticatedPlug)
99 pipeline :oauth_read do
100 plug(Pleroma.Plugs.OAuthScopesPlug, %{scopes: ["read"]})
103 pipeline :oauth_write do
104 plug(Pleroma.Plugs.OAuthScopesPlug, %{scopes: ["write"]})
107 pipeline :oauth_follow do
108 plug(Pleroma.Plugs.OAuthScopesPlug, %{scopes: ["follow"]})
111 pipeline :oauth_push do
112 plug(Pleroma.Plugs.OAuthScopesPlug, %{scopes: ["push"]})
115 pipeline :well_known do
116 plug(:accepts, ["json", "jrd+json", "xml", "xrd+xml"])
120 plug(:accepts, ["json", "xml"])
123 pipeline :pleroma_api do
124 plug(:accepts, ["html", "json"])
127 pipeline :mailbox_preview do
128 plug(:accepts, ["html"])
130 plug(:put_secure_browser_headers, %{
131 "content-security-policy" =>
132 "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' 'unsafe-eval'"
136 pipeline :http_signature do
137 plug(Pleroma.Web.Plugs.HTTPSignaturePlug)
138 plug(Pleroma.Web.Plugs.MappedSignatureToIdentityPlug)
141 scope "/api/pleroma", Pleroma.Web.TwitterAPI do
142 pipe_through(:pleroma_api)
144 get("/password_reset/:token", PasswordController, :reset, as: :reset_password)
145 post("/password_reset", PasswordController, :do_reset, as: :reset_password)
146 get("/emoji", UtilController, :emoji)
147 get("/captcha", UtilController, :captcha)
148 get("/healthcheck", UtilController, :healthcheck)
151 scope "/api/pleroma", Pleroma.Web do
152 pipe_through(:pleroma_api)
153 post("/uploader_callback/:upload_path", UploaderController, :callback)
156 scope "/api/pleroma/admin", Pleroma.Web.AdminAPI do
157 pipe_through([:admin_api, :oauth_write])
159 post("/users/follow", AdminAPIController, :user_follow)
160 post("/users/unfollow", AdminAPIController, :user_unfollow)
162 delete("/users", AdminAPIController, :user_delete)
163 post("/users", AdminAPIController, :users_create)
164 patch("/users/:nickname/toggle_activation", AdminAPIController, :user_toggle_activation)
165 put("/users/tag", AdminAPIController, :tag_users)
166 delete("/users/tag", AdminAPIController, :untag_users)
168 get("/users/:nickname/permission_group", AdminAPIController, :right_get)
169 get("/users/:nickname/permission_group/:permission_group", AdminAPIController, :right_get)
170 post("/users/:nickname/permission_group/:permission_group", AdminAPIController, :right_add)
173 "/users/:nickname/permission_group/:permission_group",
178 put("/users/:nickname/activation_status", AdminAPIController, :set_activation_status)
180 post("/relay", AdminAPIController, :relay_follow)
181 delete("/relay", AdminAPIController, :relay_unfollow)
183 post("/users/invite_token", AdminAPIController, :create_invite_token)
184 get("/users/invites", AdminAPIController, :invites)
185 post("/users/revoke_invite", AdminAPIController, :revoke_invite)
186 post("/users/email_invite", AdminAPIController, :email_invite)
188 get("/users/:nickname/password_reset", AdminAPIController, :get_password_reset)
190 get("/users", AdminAPIController, :list_users)
191 get("/users/:nickname", AdminAPIController, :user_show)
192 get("/users/:nickname/statuses", AdminAPIController, :list_user_statuses)
194 get("/reports", AdminAPIController, :list_reports)
195 get("/reports/:id", AdminAPIController, :report_show)
196 put("/reports/:id", AdminAPIController, :report_update_state)
197 post("/reports/:id/respond", AdminAPIController, :report_respond)
199 put("/statuses/:id", AdminAPIController, :status_update)
200 delete("/statuses/:id", AdminAPIController, :status_delete)
202 get("/config", AdminAPIController, :config_show)
203 post("/config", AdminAPIController, :config_update)
204 get("/config/migrate_to_db", AdminAPIController, :migrate_to_db)
205 get("/config/migrate_from_db", AdminAPIController, :migrate_from_db)
207 get("/moderation_log", AdminAPIController, :list_log)
210 scope "/", Pleroma.Web.TwitterAPI do
211 pipe_through(:pleroma_html)
213 post("/main/ostatus", UtilController, :remote_subscribe)
214 get("/ostatus_subscribe", UtilController, :remote_follow)
217 pipe_through(:oauth_follow)
218 post("/ostatus_subscribe", UtilController, :do_remote_follow)
222 scope "/api/pleroma", Pleroma.Web.TwitterAPI do
223 pipe_through(:authenticated_api)
226 pipe_through(:oauth_write)
228 post("/change_email", UtilController, :change_email)
229 post("/change_password", UtilController, :change_password)
230 post("/delete_account", UtilController, :delete_account)
231 put("/notification_settings", UtilController, :update_notificaton_settings)
232 post("/disable_account", UtilController, :disable_account)
236 pipe_through(:oauth_follow)
238 post("/blocks_import", UtilController, :blocks_import)
239 post("/follow_import", UtilController, :follow_import)
243 scope "/oauth", Pleroma.Web.OAuth do
246 get("/authorize", OAuthController, :authorize)
249 post("/authorize", OAuthController, :create_authorization)
250 post("/token", OAuthController, :token_exchange)
251 post("/revoke", OAuthController, :token_revoke)
252 get("/registration_details", OAuthController, :registration_details)
255 pipe_through(:browser)
257 get("/prepare_request", OAuthController, :prepare_request)
258 get("/:provider", OAuthController, :request)
259 get("/:provider/callback", OAuthController, :callback)
260 post("/register", OAuthController, :register)
264 scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
265 pipe_through(:authenticated_api)
268 pipe_through(:oauth_read)
269 get("/conversations/:id/statuses", PleromaAPIController, :conversation_statuses)
270 get("/conversations/:id", PleromaAPIController, :conversation)
274 pipe_through(:oauth_write)
275 patch("/conversations/:id", PleromaAPIController, :update_conversation)
276 post("/notifications/read", PleromaAPIController, :read_notification)
280 scope "/api/v1", Pleroma.Web.MastodonAPI do
281 pipe_through(:authenticated_api)
284 pipe_through(:oauth_read)
286 get("/accounts/verify_credentials", MastodonAPIController, :verify_credentials)
288 get("/accounts/relationships", MastodonAPIController, :relationships)
290 get("/accounts/:id/lists", MastodonAPIController, :account_lists)
291 get("/accounts/:id/identity_proofs", MastodonAPIController, :empty_array)
293 get("/follow_requests", MastodonAPIController, :follow_requests)
294 get("/blocks", MastodonAPIController, :blocks)
295 get("/mutes", MastodonAPIController, :mutes)
297 get("/timelines/home", MastodonAPIController, :home_timeline)
298 get("/timelines/direct", MastodonAPIController, :dm_timeline)
300 get("/favourites", MastodonAPIController, :favourites)
301 get("/bookmarks", MastodonAPIController, :bookmarks)
303 post("/notifications/clear", MastodonAPIController, :clear_notifications)
304 post("/notifications/dismiss", MastodonAPIController, :dismiss_notification)
305 get("/notifications", MastodonAPIController, :notifications)
306 get("/notifications/:id", MastodonAPIController, :get_notification)
307 delete("/notifications/destroy_multiple", MastodonAPIController, :destroy_multiple)
309 get("/scheduled_statuses", MastodonAPIController, :scheduled_statuses)
310 get("/scheduled_statuses/:id", MastodonAPIController, :show_scheduled_status)
312 get("/lists", ListController, :index)
313 get("/lists/:id", ListController, :show)
314 get("/lists/:id/accounts", ListController, :list_accounts)
316 get("/domain_blocks", MastodonAPIController, :domain_blocks)
318 get("/filters", MastodonAPIController, :get_filters)
320 get("/suggestions", MastodonAPIController, :suggestions)
322 get("/conversations", MastodonAPIController, :conversations)
323 post("/conversations/:id/read", MastodonAPIController, :conversation_read)
325 get("/endorsements", MastodonAPIController, :empty_array)
329 pipe_through(:oauth_write)
331 patch("/accounts/update_credentials", MastodonAPIController, :update_credentials)
333 post("/statuses", MastodonAPIController, :post_status)
334 delete("/statuses/:id", MastodonAPIController, :delete_status)
336 post("/statuses/:id/reblog", MastodonAPIController, :reblog_status)
337 post("/statuses/:id/unreblog", MastodonAPIController, :unreblog_status)
338 post("/statuses/:id/favourite", MastodonAPIController, :fav_status)
339 post("/statuses/:id/unfavourite", MastodonAPIController, :unfav_status)
340 post("/statuses/:id/pin", MastodonAPIController, :pin_status)
341 post("/statuses/:id/unpin", MastodonAPIController, :unpin_status)
342 post("/statuses/:id/bookmark", MastodonAPIController, :bookmark_status)
343 post("/statuses/:id/unbookmark", MastodonAPIController, :unbookmark_status)
344 post("/statuses/:id/mute", MastodonAPIController, :mute_conversation)
345 post("/statuses/:id/unmute", MastodonAPIController, :unmute_conversation)
347 put("/scheduled_statuses/:id", MastodonAPIController, :update_scheduled_status)
348 delete("/scheduled_statuses/:id", MastodonAPIController, :delete_scheduled_status)
350 post("/polls/:id/votes", MastodonAPIController, :poll_vote)
352 post("/media", MastodonAPIController, :upload)
353 put("/media/:id", MastodonAPIController, :update_media)
355 delete("/lists/:id", ListController, :delete)
356 post("/lists", ListController, :create)
357 put("/lists/:id", ListController, :update)
359 post("/lists/:id/accounts", ListController, :add_to_list)
360 delete("/lists/:id/accounts", ListController, :remove_from_list)
362 post("/filters", MastodonAPIController, :create_filter)
363 get("/filters/:id", MastodonAPIController, :get_filter)
364 put("/filters/:id", MastodonAPIController, :update_filter)
365 delete("/filters/:id", MastodonAPIController, :delete_filter)
367 patch("/pleroma/accounts/update_avatar", MastodonAPIController, :update_avatar)
368 patch("/pleroma/accounts/update_banner", MastodonAPIController, :update_banner)
369 patch("/pleroma/accounts/update_background", MastodonAPIController, :update_background)
371 get("/pleroma/mascot", MastodonAPIController, :get_mascot)
372 put("/pleroma/mascot", MastodonAPIController, :set_mascot)
374 post("/reports", MastodonAPIController, :reports)
378 pipe_through(:oauth_follow)
380 post("/follows", MastodonAPIController, :follow)
381 post("/accounts/:id/follow", MastodonAPIController, :follow)
383 post("/accounts/:id/unfollow", MastodonAPIController, :unfollow)
384 post("/accounts/:id/block", MastodonAPIController, :block)
385 post("/accounts/:id/unblock", MastodonAPIController, :unblock)
386 post("/accounts/:id/mute", MastodonAPIController, :mute)
387 post("/accounts/:id/unmute", MastodonAPIController, :unmute)
389 post("/follow_requests/:id/authorize", MastodonAPIController, :authorize_follow_request)
390 post("/follow_requests/:id/reject", MastodonAPIController, :reject_follow_request)
392 post("/domain_blocks", MastodonAPIController, :block_domain)
393 delete("/domain_blocks", MastodonAPIController, :unblock_domain)
395 post("/pleroma/accounts/:id/subscribe", MastodonAPIController, :subscribe)
396 post("/pleroma/accounts/:id/unsubscribe", MastodonAPIController, :unsubscribe)
400 pipe_through(:oauth_push)
402 post("/push/subscription", SubscriptionController, :create)
403 get("/push/subscription", SubscriptionController, :get)
404 put("/push/subscription", SubscriptionController, :update)
405 delete("/push/subscription", SubscriptionController, :delete)
409 scope "/api/web", Pleroma.Web.MastodonAPI do
410 pipe_through([:authenticated_api, :oauth_write])
412 put("/settings", MastodonAPIController, :put_settings)
415 scope "/api/v1", Pleroma.Web.MastodonAPI do
418 post("/accounts", MastodonAPIController, :account_register)
420 get("/instance", MastodonAPIController, :masto_instance)
421 get("/instance/peers", MastodonAPIController, :peers)
422 post("/apps", MastodonAPIController, :create_app)
423 get("/apps/verify_credentials", MastodonAPIController, :verify_app_credentials)
424 get("/custom_emojis", MastodonAPIController, :custom_emojis)
426 get("/statuses/:id/card", MastodonAPIController, :status_card)
428 get("/statuses/:id/favourited_by", MastodonAPIController, :favourited_by)
429 get("/statuses/:id/reblogged_by", MastodonAPIController, :reblogged_by)
431 get("/trends", MastodonAPIController, :empty_array)
433 get("/accounts/search", SearchController, :account_search)
436 "/pleroma/accounts/confirmation_resend",
437 MastodonAPIController,
438 :account_confirmation_resend
442 pipe_through(:oauth_read_or_public)
444 get("/timelines/public", MastodonAPIController, :public_timeline)
445 get("/timelines/tag/:tag", MastodonAPIController, :hashtag_timeline)
446 get("/timelines/list/:list_id", MastodonAPIController, :list_timeline)
448 get("/statuses", MastodonAPIController, :get_statuses)
449 get("/statuses/:id", MastodonAPIController, :get_status)
450 get("/statuses/:id/context", MastodonAPIController, :get_context)
452 get("/polls/:id", MastodonAPIController, :get_poll)
454 get("/accounts/:id/statuses", MastodonAPIController, :user_statuses)
455 get("/accounts/:id/followers", MastodonAPIController, :followers)
456 get("/accounts/:id/following", MastodonAPIController, :following)
457 get("/accounts/:id", MastodonAPIController, :user)
459 get("/search", SearchController, :search)
461 get("/pleroma/accounts/:id/favourites", MastodonAPIController, :user_favourites)
465 scope "/api/v2", Pleroma.Web.MastodonAPI do
466 pipe_through([:api, :oauth_read_or_public])
467 get("/search", SearchController, :search2)
470 scope "/api", Pleroma.Web do
471 pipe_through(:config)
473 get("/help/test", TwitterAPI.UtilController, :help_test)
474 post("/help/test", TwitterAPI.UtilController, :help_test)
475 get("/statusnet/config", TwitterAPI.UtilController, :config)
476 get("/statusnet/version", TwitterAPI.UtilController, :version)
477 get("/pleroma/frontend_configurations", TwitterAPI.UtilController, :frontend_configurations)
480 scope "/api", Pleroma.Web do
484 "/account/confirm_email/:user_id/:token",
485 TwitterAPI.Controller,
491 scope "/api", Pleroma.Web, as: :authenticated_twitter_api do
492 pipe_through(:authenticated_api)
494 get("/oauth_tokens", TwitterAPI.Controller, :oauth_tokens)
495 delete("/oauth_tokens/:id", TwitterAPI.Controller, :revoke_token)
498 pipe_through(:oauth_read)
500 post("/qvitter/statuses/notifications/read", TwitterAPI.Controller, :notifications_read)
504 pipeline :ap_service_actor do
505 plug(:accepts, ["activity+json", "json"])
509 plug(:accepts, ["html", "xml", "atom", "activity+json", "json"])
513 plug(:accepts, ["json", "xml"])
516 scope "/", Pleroma.Web do
517 pipe_through(:ostatus)
518 pipe_through(:http_signature)
520 get("/objects/:uuid", OStatus.OStatusController, :object)
521 get("/activities/:uuid", OStatus.OStatusController, :activity)
522 get("/notice/:id", OStatus.OStatusController, :notice)
523 get("/notice/:id/embed_player", OStatus.OStatusController, :notice_player)
524 get("/users/:nickname/feed", OStatus.OStatusController, :feed)
525 get("/users/:nickname", OStatus.OStatusController, :feed_redirect)
527 post("/users/:nickname/salmon", OStatus.OStatusController, :salmon_incoming)
528 post("/push/hub/:nickname", Websub.WebsubController, :websub_subscription_request)
529 get("/push/subscriptions/:id", Websub.WebsubController, :websub_subscription_confirmation)
530 post("/push/subscriptions/:id", Websub.WebsubController, :websub_incoming)
532 get("/mailer/unsubscribe/:token", Mailer.SubscriptionController, :unsubscribe)
535 pipeline :activitypub do
536 plug(:accepts, ["activity+json", "json"])
537 plug(Pleroma.Web.Plugs.HTTPSignaturePlug)
538 plug(Pleroma.Web.Plugs.MappedSignatureToIdentityPlug)
541 scope "/", Pleroma.Web.ActivityPub do
542 # XXX: not really ostatus
543 pipe_through(:ostatus)
545 get("/users/:nickname/outbox", ActivityPubController, :outbox)
546 get("/objects/:uuid/likes", ActivityPubController, :object_likes)
549 pipeline :activitypub_client do
550 plug(:accepts, ["activity+json", "json"])
552 plug(Pleroma.Plugs.OAuthPlug)
553 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
554 plug(Pleroma.Plugs.UserFetcherPlug)
555 plug(Pleroma.Plugs.SessionAuthenticationPlug)
556 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
557 plug(Pleroma.Plugs.AuthenticationPlug)
558 plug(Pleroma.Plugs.UserEnabledPlug)
559 plug(Pleroma.Plugs.SetUserSessionIdPlug)
560 plug(Pleroma.Plugs.EnsureUserKeyPlug)
563 scope "/", Pleroma.Web.ActivityPub do
564 pipe_through([:activitypub_client])
567 pipe_through(:oauth_read)
568 get("/api/ap/whoami", ActivityPubController, :whoami)
569 get("/users/:nickname/inbox", ActivityPubController, :read_inbox)
573 pipe_through(:oauth_write)
574 post("/users/:nickname/outbox", ActivityPubController, :update_outbox)
575 post("/api/ap/uploadMedia", ActivityPubController, :upload_media)
579 pipe_through(:oauth_read_or_public)
580 get("/users/:nickname/followers", ActivityPubController, :followers)
581 get("/users/:nickname/following", ActivityPubController, :following)
585 scope "/", Pleroma.Web.ActivityPub do
586 pipe_through(:activitypub)
587 post("/inbox", ActivityPubController, :inbox)
588 post("/users/:nickname/inbox", ActivityPubController, :inbox)
591 scope "/relay", Pleroma.Web.ActivityPub do
592 pipe_through(:ap_service_actor)
594 get("/", ActivityPubController, :relay)
597 pipe_through(:http_signature)
598 post("/inbox", ActivityPubController, :inbox)
601 get("/following", ActivityPubController, :following, assigns: %{relay: true})
602 get("/followers", ActivityPubController, :followers, assigns: %{relay: true})
605 scope "/internal/fetch", Pleroma.Web.ActivityPub do
606 pipe_through(:ap_service_actor)
608 get("/", ActivityPubController, :internal_fetch)
609 post("/inbox", ActivityPubController, :inbox)
612 scope "/.well-known", Pleroma.Web do
613 pipe_through(:well_known)
615 get("/host-meta", WebFinger.WebFingerController, :host_meta)
616 get("/webfinger", WebFinger.WebFingerController, :webfinger)
617 get("/nodeinfo", Nodeinfo.NodeinfoController, :schemas)
620 scope "/nodeinfo", Pleroma.Web do
621 get("/:version", Nodeinfo.NodeinfoController, :nodeinfo)
624 scope "/", Pleroma.Web.MastodonAPI do
625 pipe_through(:mastodon_html)
627 get("/web/login", MastodonAPIController, :login)
628 delete("/auth/sign_out", MastodonAPIController, :logout)
630 post("/auth/password", MastodonAPIController, :password_reset)
633 pipe_through(:oauth_read)
634 get("/web/*path", MastodonAPIController, :index)
638 pipeline :remote_media do
641 scope "/proxy/", Pleroma.Web.MediaProxy do
642 pipe_through(:remote_media)
644 get("/:sig/:url", MediaProxyController, :remote)
645 get("/:sig/:url/:filename", MediaProxyController, :remote)
648 if Pleroma.Config.get(:env) == :dev do
650 pipe_through([:mailbox_preview])
652 forward("/mailbox", Plug.Swoosh.MailboxPreview, base_path: "/dev/mailbox")
656 scope "/", Pleroma.Web.MongooseIM do
657 get("/user_exists", MongooseIMController, :user_exists)
658 get("/check_password", MongooseIMController, :check_password)
661 scope "/", Fallback do
662 get("/registration/:token", RedirectController, :registration_page)
663 get("/:maybe_nickname_or_id", RedirectController, :redirector_with_meta)
664 get("/api*path", RedirectController, :api_not_implemented)
665 get("/*path", RedirectController, :redirector)
667 options("/*path", RedirectController, :empty)