1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 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)
16 plug(Pleroma.Plugs.UserEnabledPlug)
20 plug(:accepts, ["json"])
22 plug(Pleroma.Plugs.OAuthPlug)
23 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
24 plug(Pleroma.Plugs.UserFetcherPlug)
25 plug(Pleroma.Plugs.SessionAuthenticationPlug)
26 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
27 plug(Pleroma.Plugs.AuthenticationPlug)
28 plug(Pleroma.Plugs.UserEnabledPlug)
29 plug(Pleroma.Plugs.SetUserSessionIdPlug)
30 plug(Pleroma.Plugs.EnsureUserKeyPlug)
31 plug(Pleroma.Plugs.IdempotencyPlug)
34 pipeline :authenticated_api do
35 plug(:accepts, ["json"])
37 plug(Pleroma.Plugs.OAuthPlug)
38 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
39 plug(Pleroma.Plugs.UserFetcherPlug)
40 plug(Pleroma.Plugs.SessionAuthenticationPlug)
41 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
42 plug(Pleroma.Plugs.AuthenticationPlug)
43 plug(Pleroma.Plugs.UserEnabledPlug)
44 plug(Pleroma.Plugs.SetUserSessionIdPlug)
45 plug(Pleroma.Plugs.EnsureAuthenticatedPlug)
46 plug(Pleroma.Plugs.IdempotencyPlug)
49 pipeline :admin_api do
50 plug(:accepts, ["json"])
52 plug(Pleroma.Plugs.OAuthPlug)
53 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
54 plug(Pleroma.Plugs.UserFetcherPlug)
55 plug(Pleroma.Plugs.SessionAuthenticationPlug)
56 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
57 plug(Pleroma.Plugs.AuthenticationPlug)
58 plug(Pleroma.Plugs.AdminSecretAuthenticationPlug)
59 plug(Pleroma.Plugs.UserEnabledPlug)
60 plug(Pleroma.Plugs.SetUserSessionIdPlug)
61 plug(Pleroma.Plugs.EnsureAuthenticatedPlug)
62 plug(Pleroma.Plugs.UserIsAdminPlug)
63 plug(Pleroma.Plugs.IdempotencyPlug)
66 pipeline :mastodon_html do
67 plug(:accepts, ["html"])
69 plug(Pleroma.Plugs.OAuthPlug)
70 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
71 plug(Pleroma.Plugs.UserFetcherPlug)
72 plug(Pleroma.Plugs.SessionAuthenticationPlug)
73 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
74 plug(Pleroma.Plugs.AuthenticationPlug)
75 plug(Pleroma.Plugs.UserEnabledPlug)
76 plug(Pleroma.Plugs.SetUserSessionIdPlug)
77 plug(Pleroma.Plugs.EnsureUserKeyPlug)
80 pipeline :pleroma_html do
81 plug(:accepts, ["html"])
83 plug(Pleroma.Plugs.OAuthPlug)
84 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
85 plug(Pleroma.Plugs.UserFetcherPlug)
86 plug(Pleroma.Plugs.SessionAuthenticationPlug)
87 plug(Pleroma.Plugs.AuthenticationPlug)
88 plug(Pleroma.Plugs.EnsureUserKeyPlug)
91 pipeline :well_known do
92 plug(:accepts, ["json", "jrd+json", "xml", "xrd+xml"])
96 plug(:accepts, ["json", "xml"])
99 pipeline :pleroma_api do
100 plug(:accepts, ["html", "json"])
103 pipeline :mailbox_preview do
104 plug(:accepts, ["html"])
106 plug(:put_secure_browser_headers, %{
107 "content-security-policy" =>
108 "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' 'unsafe-eval'"
112 pipeline :http_signature do
113 plug(Pleroma.Web.Plugs.HTTPSignaturePlug)
114 plug(Pleroma.Web.Plugs.MappedSignatureToIdentityPlug)
117 scope "/api/pleroma", Pleroma.Web.TwitterAPI do
118 pipe_through(:pleroma_api)
120 get("/password_reset/:token", PasswordController, :reset, as: :reset_password)
121 post("/password_reset", PasswordController, :do_reset, as: :reset_password)
122 get("/emoji", UtilController, :emoji)
123 get("/captcha", UtilController, :captcha)
124 get("/healthcheck", UtilController, :healthcheck)
127 scope "/api/pleroma", Pleroma.Web do
128 pipe_through(:pleroma_api)
129 post("/uploader_callback/:upload_path", UploaderController, :callback)
132 scope "/api/pleroma/admin", Pleroma.Web.AdminAPI do
133 pipe_through(:admin_api)
135 post("/users/follow", AdminAPIController, :user_follow)
136 post("/users/unfollow", AdminAPIController, :user_unfollow)
138 delete("/users", AdminAPIController, :user_delete)
139 post("/users", AdminAPIController, :users_create)
140 patch("/users/:nickname/toggle_activation", AdminAPIController, :user_toggle_activation)
141 patch("/users/activate", AdminAPIController, :user_activate)
142 patch("/users/deactivate", AdminAPIController, :user_deactivate)
143 put("/users/tag", AdminAPIController, :tag_users)
144 delete("/users/tag", AdminAPIController, :untag_users)
146 get("/users/:nickname/permission_group", AdminAPIController, :right_get)
147 get("/users/:nickname/permission_group/:permission_group", AdminAPIController, :right_get)
149 post("/users/:nickname/permission_group/:permission_group", AdminAPIController, :right_add)
152 "/users/:nickname/permission_group/:permission_group",
157 post("/users/permission_group/:permission_group", AdminAPIController, :right_add_multiple)
160 "/users/permission_group/:permission_group",
162 :right_delete_multiple
165 get("/relay", AdminAPIController, :relay_list)
166 post("/relay", AdminAPIController, :relay_follow)
167 delete("/relay", AdminAPIController, :relay_unfollow)
169 post("/users/invite_token", AdminAPIController, :create_invite_token)
170 get("/users/invites", AdminAPIController, :invites)
171 post("/users/revoke_invite", AdminAPIController, :revoke_invite)
172 post("/users/email_invite", AdminAPIController, :email_invite)
174 get("/users/:nickname/password_reset", AdminAPIController, :get_password_reset)
175 patch("/users/force_password_reset", AdminAPIController, :force_password_reset)
176 get("/users/:nickname/credentials", AdminAPIController, :show_user_credentials)
177 patch("/users/:nickname/credentials", AdminAPIController, :update_user_credentials)
179 get("/users", AdminAPIController, :list_users)
180 get("/users/:nickname", AdminAPIController, :user_show)
181 get("/users/:nickname/statuses", AdminAPIController, :list_user_statuses)
183 get("/instances/:instance/statuses", AdminAPIController, :list_instance_statuses)
185 patch("/users/confirm_email", AdminAPIController, :confirm_email)
186 patch("/users/resend_confirmation_email", AdminAPIController, :resend_confirmation_email)
188 get("/reports", AdminAPIController, :list_reports)
189 get("/reports/:id", AdminAPIController, :report_show)
190 patch("/reports", AdminAPIController, :reports_update)
191 post("/reports/:id/notes", AdminAPIController, :report_notes_create)
192 delete("/reports/:report_id/notes/:id", AdminAPIController, :report_notes_delete)
194 put("/statuses/:id", AdminAPIController, :status_update)
195 delete("/statuses/:id", AdminAPIController, :status_delete)
196 get("/statuses", AdminAPIController, :list_statuses)
198 get("/config", AdminAPIController, :config_show)
199 post("/config", AdminAPIController, :config_update)
200 get("/config/descriptions", AdminAPIController, :config_descriptions)
201 get("/restart", AdminAPIController, :restart)
203 get("/moderation_log", AdminAPIController, :list_log)
205 post("/reload_emoji", AdminAPIController, :reload_emoji)
206 get("/stats", AdminAPIController, :stats)
209 scope "/api/pleroma/emoji", Pleroma.Web.PleromaAPI do
212 pipe_through(:admin_api)
214 post("/import_from_fs", EmojiAPIController, :import_from_fs)
216 post("/:pack_name/update_file", EmojiAPIController, :update_file)
217 post("/:pack_name/update_metadata", EmojiAPIController, :update_metadata)
218 put("/:name", EmojiAPIController, :create)
219 delete("/:name", EmojiAPIController, :delete)
220 post("/download_from", EmojiAPIController, :download_from)
221 post("/list_from", EmojiAPIController, :list_from)
225 # Pack info / downloading
226 get("/", EmojiAPIController, :list_packs)
227 get("/:name/download_shared/", EmojiAPIController, :download_shared)
231 scope "/", Pleroma.Web.TwitterAPI do
232 pipe_through(:pleroma_html)
234 post("/main/ostatus", UtilController, :remote_subscribe)
235 get("/ostatus_subscribe", RemoteFollowController, :follow)
237 post("/ostatus_subscribe", RemoteFollowController, :do_follow)
240 scope "/api/pleroma", Pleroma.Web.TwitterAPI do
241 pipe_through(:authenticated_api)
243 post("/change_email", UtilController, :change_email)
244 post("/change_password", UtilController, :change_password)
245 post("/delete_account", UtilController, :delete_account)
246 put("/notification_settings", UtilController, :update_notificaton_settings)
247 post("/disable_account", UtilController, :disable_account)
249 post("/blocks_import", UtilController, :blocks_import)
250 post("/follow_import", UtilController, :follow_import)
253 scope "/oauth", Pleroma.Web.OAuth do
256 get("/authorize", OAuthController, :authorize)
259 post("/authorize", OAuthController, :create_authorization)
260 post("/token", OAuthController, :token_exchange)
261 post("/revoke", OAuthController, :token_revoke)
262 get("/registration_details", OAuthController, :registration_details)
265 pipe_through(:browser)
267 get("/prepare_request", OAuthController, :prepare_request)
268 get("/:provider", OAuthController, :request)
269 get("/:provider/callback", OAuthController, :callback)
270 post("/register", OAuthController, :register)
274 scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
277 get("/statuses/:id/reactions/:emoji", PleromaAPIController, :emoji_reactions_by)
278 get("/statuses/:id/reactions", PleromaAPIController, :emoji_reactions_by)
281 scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
283 pipe_through(:authenticated_api)
285 get("/conversations/:id/statuses", PleromaAPIController, :conversation_statuses)
286 get("/conversations/:id", PleromaAPIController, :conversation)
287 post("/conversations/read", PleromaAPIController, :read_conversations)
291 pipe_through(:authenticated_api)
293 patch("/conversations/:id", PleromaAPIController, :update_conversation)
294 put("/statuses/:id/reactions/:emoji", PleromaAPIController, :react_with_emoji)
295 delete("/statuses/:id/reactions/:emoji", PleromaAPIController, :unreact_with_emoji)
296 post("/notifications/read", PleromaAPIController, :read_notification)
298 patch("/accounts/update_avatar", AccountController, :update_avatar)
299 patch("/accounts/update_banner", AccountController, :update_banner)
300 patch("/accounts/update_background", AccountController, :update_background)
302 get("/mascot", MascotController, :show)
303 put("/mascot", MascotController, :update)
305 post("/scrobble", ScrobbleController, :new_scrobble)
310 get("/accounts/:id/favourites", AccountController, :favourites)
314 pipe_through(:authenticated_api)
316 post("/accounts/:id/subscribe", AccountController, :subscribe)
317 post("/accounts/:id/unsubscribe", AccountController, :unsubscribe)
320 post("/accounts/confirmation_resend", AccountController, :confirmation_resend)
323 scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
325 get("/accounts/:id/scrobbles", ScrobbleController, :user_scrobbles)
328 scope "/api/v1", Pleroma.Web.MastodonAPI do
329 pipe_through(:authenticated_api)
331 get("/accounts/verify_credentials", AccountController, :verify_credentials)
333 get("/accounts/relationships", AccountController, :relationships)
335 get("/accounts/:id/lists", AccountController, :lists)
336 get("/accounts/:id/identity_proofs", MastodonAPIController, :empty_array)
338 get("/follow_requests", FollowRequestController, :index)
339 get("/blocks", AccountController, :blocks)
340 get("/mutes", AccountController, :mutes)
342 get("/timelines/home", TimelineController, :home)
343 get("/timelines/direct", TimelineController, :direct)
345 get("/favourites", StatusController, :favourites)
346 get("/bookmarks", StatusController, :bookmarks)
348 get("/notifications", NotificationController, :index)
349 get("/notifications/:id", NotificationController, :show)
350 post("/notifications/clear", NotificationController, :clear)
351 post("/notifications/dismiss", NotificationController, :dismiss)
352 delete("/notifications/destroy_multiple", NotificationController, :destroy_multiple)
354 get("/scheduled_statuses", ScheduledActivityController, :index)
355 get("/scheduled_statuses/:id", ScheduledActivityController, :show)
357 get("/lists", ListController, :index)
358 get("/lists/:id", ListController, :show)
359 get("/lists/:id/accounts", ListController, :list_accounts)
361 get("/domain_blocks", DomainBlockController, :index)
363 get("/filters", FilterController, :index)
365 get("/suggestions", SuggestionController, :index)
367 get("/conversations", ConversationController, :index)
368 post("/conversations/:id/read", ConversationController, :read)
370 get("/endorsements", AccountController, :endorsements)
372 patch("/accounts/update_credentials", AccountController, :update_credentials)
374 post("/statuses", StatusController, :create)
375 delete("/statuses/:id", StatusController, :delete)
377 post("/statuses/:id/reblog", StatusController, :reblog)
378 post("/statuses/:id/unreblog", StatusController, :unreblog)
379 post("/statuses/:id/favourite", StatusController, :favourite)
380 post("/statuses/:id/unfavourite", StatusController, :unfavourite)
381 post("/statuses/:id/pin", StatusController, :pin)
382 post("/statuses/:id/unpin", StatusController, :unpin)
383 post("/statuses/:id/bookmark", StatusController, :bookmark)
384 post("/statuses/:id/unbookmark", StatusController, :unbookmark)
385 post("/statuses/:id/mute", StatusController, :mute_conversation)
386 post("/statuses/:id/unmute", StatusController, :unmute_conversation)
388 put("/scheduled_statuses/:id", ScheduledActivityController, :update)
389 delete("/scheduled_statuses/:id", ScheduledActivityController, :delete)
391 post("/polls/:id/votes", PollController, :vote)
393 post("/media", MediaController, :create)
394 put("/media/:id", MediaController, :update)
396 delete("/lists/:id", ListController, :delete)
397 post("/lists", ListController, :create)
398 put("/lists/:id", ListController, :update)
400 post("/lists/:id/accounts", ListController, :add_to_list)
401 delete("/lists/:id/accounts", ListController, :remove_from_list)
403 post("/filters", FilterController, :create)
404 get("/filters/:id", FilterController, :show)
405 put("/filters/:id", FilterController, :update)
406 delete("/filters/:id", FilterController, :delete)
408 post("/reports", ReportController, :create)
410 post("/follows", AccountController, :follows)
411 post("/accounts/:id/follow", AccountController, :follow)
412 post("/accounts/:id/unfollow", AccountController, :unfollow)
413 post("/accounts/:id/block", AccountController, :block)
414 post("/accounts/:id/unblock", AccountController, :unblock)
415 post("/accounts/:id/mute", AccountController, :mute)
416 post("/accounts/:id/unmute", AccountController, :unmute)
418 post("/follow_requests/:id/authorize", FollowRequestController, :authorize)
419 post("/follow_requests/:id/reject", FollowRequestController, :reject)
421 post("/domain_blocks", DomainBlockController, :create)
422 delete("/domain_blocks", DomainBlockController, :delete)
424 post("/push/subscription", SubscriptionController, :create)
425 get("/push/subscription", SubscriptionController, :get)
426 put("/push/subscription", SubscriptionController, :update)
427 delete("/push/subscription", SubscriptionController, :delete)
429 get("/markers", MarkerController, :index)
430 post("/markers", MarkerController, :upsert)
433 scope "/api/web", Pleroma.Web do
434 pipe_through(:authenticated_api)
436 put("/settings", MastoFEController, :put_settings)
439 scope "/api/v1", Pleroma.Web.MastodonAPI do
442 post("/accounts", AccountController, :create)
443 get("/accounts/search", SearchController, :account_search)
445 get("/instance", InstanceController, :show)
446 get("/instance/peers", InstanceController, :peers)
448 post("/apps", AppController, :create)
449 get("/apps/verify_credentials", AppController, :verify_credentials)
451 get("/statuses/:id/card", StatusController, :card)
452 get("/statuses/:id/favourited_by", StatusController, :favourited_by)
453 get("/statuses/:id/reblogged_by", StatusController, :reblogged_by)
455 get("/custom_emojis", CustomEmojiController, :index)
457 get("/trends", MastodonAPIController, :empty_array)
459 get("/timelines/public", TimelineController, :public)
460 get("/timelines/tag/:tag", TimelineController, :hashtag)
461 get("/timelines/list/:list_id", TimelineController, :list)
463 get("/statuses", StatusController, :index)
464 get("/statuses/:id", StatusController, :show)
465 get("/statuses/:id/context", StatusController, :context)
467 get("/polls/:id", PollController, :show)
469 get("/accounts/:id/statuses", AccountController, :statuses)
470 get("/accounts/:id/followers", AccountController, :followers)
471 get("/accounts/:id/following", AccountController, :following)
472 get("/accounts/:id", AccountController, :show)
474 get("/search", SearchController, :search)
477 scope "/api/v2", Pleroma.Web.MastodonAPI do
479 get("/search", SearchController, :search2)
482 scope "/api", Pleroma.Web do
483 pipe_through(:config)
485 get("/help/test", TwitterAPI.UtilController, :help_test)
486 post("/help/test", TwitterAPI.UtilController, :help_test)
487 get("/statusnet/config", TwitterAPI.UtilController, :config)
488 get("/statusnet/version", TwitterAPI.UtilController, :version)
489 get("/pleroma/frontend_configurations", TwitterAPI.UtilController, :frontend_configurations)
492 scope "/api", Pleroma.Web do
496 "/account/confirm_email/:user_id/:token",
497 TwitterAPI.Controller,
503 scope "/api", Pleroma.Web, as: :authenticated_twitter_api do
504 pipe_through(:authenticated_api)
506 get("/oauth_tokens", TwitterAPI.Controller, :oauth_tokens)
507 delete("/oauth_tokens/:id", TwitterAPI.Controller, :revoke_token)
509 post("/qvitter/statuses/notifications/read", TwitterAPI.Controller, :notifications_read)
512 pipeline :ap_service_actor do
513 plug(:accepts, ["activity+json", "json"])
517 plug(:accepts, ["html", "xml", "rss", "atom", "activity+json", "json"])
518 plug(Pleroma.Plugs.StaticFEPlug)
522 plug(:accepts, ["json", "xml"])
525 scope "/", Pleroma.Web do
526 pipe_through(:ostatus)
527 pipe_through(:http_signature)
529 get("/objects/:uuid", OStatus.OStatusController, :object)
530 get("/activities/:uuid", OStatus.OStatusController, :activity)
531 get("/notice/:id", OStatus.OStatusController, :notice)
532 get("/notice/:id/embed_player", OStatus.OStatusController, :notice_player)
534 get("/users/:nickname/feed", Feed.UserController, :feed, as: :user_feed)
535 get("/users/:nickname", Feed.UserController, :feed_redirect, as: :user_feed)
537 get("/tags/:tag", Feed.TagController, :feed, as: :tag_feed)
540 scope "/", Pleroma.Web do
541 pipe_through(:browser)
542 get("/mailer/unsubscribe/:token", Mailer.SubscriptionController, :unsubscribe)
545 # Server to Server (S2S) AP interactions
546 pipeline :activitypub do
547 plug(:accepts, ["activity+json", "json"])
548 plug(Pleroma.Web.Plugs.HTTPSignaturePlug)
549 plug(Pleroma.Web.Plugs.MappedSignatureToIdentityPlug)
552 scope "/", Pleroma.Web.ActivityPub do
553 # XXX: not really ostatus
554 pipe_through(:ostatus)
556 get("/users/:nickname/outbox", ActivityPubController, :outbox)
559 # Client to Server (C2S) AP interactions
560 pipeline :activitypub_client do
561 plug(:accepts, ["activity+json", "json"])
563 plug(Pleroma.Plugs.OAuthPlug)
564 plug(Pleroma.Plugs.BasicAuthDecoderPlug)
565 plug(Pleroma.Plugs.UserFetcherPlug)
566 plug(Pleroma.Plugs.SessionAuthenticationPlug)
567 plug(Pleroma.Plugs.LegacyAuthenticationPlug)
568 plug(Pleroma.Plugs.AuthenticationPlug)
569 plug(Pleroma.Plugs.UserEnabledPlug)
570 plug(Pleroma.Plugs.SetUserSessionIdPlug)
571 plug(Pleroma.Plugs.EnsureUserKeyPlug)
574 scope "/", Pleroma.Web.ActivityPub do
575 pipe_through([:activitypub_client])
577 get("/api/ap/whoami", ActivityPubController, :whoami)
578 get("/users/:nickname/inbox", ActivityPubController, :read_inbox)
580 post("/users/:nickname/outbox", ActivityPubController, :update_outbox)
581 post("/api/ap/upload_media", ActivityPubController, :upload_media)
583 get("/users/:nickname/followers", ActivityPubController, :followers)
584 get("/users/:nickname/following", ActivityPubController, :following)
587 scope "/", Pleroma.Web.ActivityPub do
588 pipe_through(:activitypub)
589 post("/inbox", ActivityPubController, :inbox)
590 post("/users/:nickname/inbox", ActivityPubController, :inbox)
593 scope "/relay", Pleroma.Web.ActivityPub do
594 pipe_through(:ap_service_actor)
596 get("/", ActivityPubController, :relay)
599 pipe_through(:http_signature)
600 post("/inbox", ActivityPubController, :inbox)
603 get("/following", ActivityPubController, :relay_following)
604 get("/followers", ActivityPubController, :relay_followers)
607 scope "/internal/fetch", Pleroma.Web.ActivityPub do
608 pipe_through(:ap_service_actor)
610 get("/", ActivityPubController, :internal_fetch)
611 post("/inbox", ActivityPubController, :inbox)
614 scope "/.well-known", Pleroma.Web do
615 pipe_through(:well_known)
617 get("/host-meta", WebFinger.WebFingerController, :host_meta)
618 get("/webfinger", WebFinger.WebFingerController, :webfinger)
619 get("/nodeinfo", Nodeinfo.NodeinfoController, :schemas)
622 scope "/nodeinfo", Pleroma.Web do
623 get("/:version", Nodeinfo.NodeinfoController, :nodeinfo)
626 scope "/", Pleroma.Web do
629 get("/web/manifest.json", MastoFEController, :manifest)
632 scope "/", Pleroma.Web do
633 pipe_through(:mastodon_html)
635 get("/web/login", MastodonAPI.AuthController, :login)
636 delete("/auth/sign_out", MastodonAPI.AuthController, :logout)
638 post("/auth/password", MastodonAPI.AuthController, :password_reset)
640 get("/web/*path", MastoFEController, :index)
643 pipeline :remote_media do
646 scope "/proxy/", Pleroma.Web.MediaProxy do
647 pipe_through(:remote_media)
649 get("/:sig/:url", MediaProxyController, :remote)
650 get("/:sig/:url/:filename", MediaProxyController, :remote)
653 if Pleroma.Config.get(:env) == :dev do
655 pipe_through([:mailbox_preview])
657 forward("/mailbox", Plug.Swoosh.MailboxPreview, base_path: "/dev/mailbox")
661 scope "/", Pleroma.Web.MongooseIM do
662 get("/user_exists", MongooseIMController, :user_exists)
663 get("/check_password", MongooseIMController, :check_password)
666 scope "/", Fallback do
667 get("/registration/:token", RedirectController, :registration_page)
668 get("/:maybe_nickname_or_id", RedirectController, :redirector_with_meta)
669 get("/api*path", RedirectController, :api_not_implemented)
670 get("/*path", RedirectController, :redirector)
672 options("/*path", RedirectController, :empty)