-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.rb
77 lines (74 loc) · 11.6 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# typed: strict
# frozen_string_literal: true
Rails.application.routes.draw do
if Rails.env.development?
mount LetterOpenerWeb::Engine, at: "/letter_opener"
end
# standard:disable Layout/ExtraSpacing, Rails/MatchRoute
match "/@:atname", via: :get, as: :profile, to: "profiles/show#call"
match "/@:atname/atom", via: :get, as: :profile_atom, to: "profiles/atom/show#call"
match "/@:atname/check", via: :post, as: :profile_check, to: "checks/create#call"
match "/@:atname/follow", via: :delete, as: :profile_follow, to: "follows/destroy#call"
match "/@:atname/follow", via: :post, to: "follows/create#call"
match "/@:atname/posts/:post_id", via: :get, as: :profile_post, to: "posts/show#call"
match "/accounts", via: :post, as: :account_list, to: "accounts/create#call"
match "/accounts/new", via: :get, as: :new_account, to: "accounts/new#call"
match "/api/v1/@:atname/follow", via: :delete, as: :v1_follow, to: "api/v1/follows/destroy#call"
match "/api/v1/@:atname/follow", via: :post, to: "api/v1/follows/create#call"
match "/api/v1/@:atname/posts", via: :get, as: :v1_profile_post_list, to: "api/v1/profiles/posts/index#call"
match "/api/v1/internal/@:atname/posts", via: :get, as: :v1_internal_profile_post_list, to: "api/v1/internal/profiles/posts/index#call"
match "/api/v1/internal/accounts", via: :post, as: :v1_internal_account_list, to: "api/v1/internal/accounts/create#call"
match "/api/v1/internal/email_confirmations", via: :post, as: :v1_internal_email_confirmation_list, to: "api/v1/internal/email_confirmations/create#call"
match "/api/v1/internal/email_confirmations/:email_confirmation_id", via: :get, as: :v1_internal_email_confirmation, to: "api/v1/internal/email_confirmations/show#call"
match "/api/v1/internal/email_confirmations/:email_confirmation_id/challenge", via: :post, as: :v1_internal_email_confirmation_challenge, to: "api/v1/internal/email_confirmations/challenges/create#call"
match "/api/v1/internal/password", via: :patch, as: :v1_internal_password, to: "api/v1/internal/passwords/update#call"
match "/api/v1/internal/posts/:post_id", via: :get, as: :v1_internal_post, to: "api/v1/internal/posts/show#call"
match "/api/v1/internal/sessions", via: :post, as: :v1_internal_session_list, to: "api/v1/internal/sessions/create#call"
match "/api/v1/notifications", via: :get, as: :v1_notification_list, to: "api/v1/notifications/index#call"
match "/api/v1/posts", via: :post, as: :v1_post_list, to: "api/v1/posts/create#call"
match "/api/v1/posts/:post_id", via: :delete, as: :v1_post, to: "api/v1/posts/destroy#call"
match "/api/v1/posts/:post_id", via: :get, to: "api/v1/posts/show#call"
match "/api/v1/posts/:post_id/stamp", via: :delete, as: :v1_post_stamp, to: "api/v1/stamps/destroy#call"
match "/api/v1/posts/:post_id/stamp", via: :post, to: "api/v1/stamps/create#call"
match "/api/v1/profiles/me", via: :get, as: :v1_profile_me, to: "api/v1/profiles/me/show#call"
match "/api/v1/profiles/me", via: :patch, to: "api/v1/profiles/me/update#call"
match "/api/v1/suggested_profiles", via: :get, as: :v1_suggested_profile_list, to: "api/v1/suggested_profiles/index#call"
match "/api/v1/suggested_profiles/@:atname/check", via: :post, as: :v1_suggested_profile_check, to: "api/v1/suggested_profiles/checks/create#call"
match "/api/v1/timeline", via: :get, as: :v1_timeline, to: "api/v1/timeline/show#call"
match "/api/v1/users/me", via: :get, as: :v1_user_me, to: "api/v1/users/me/show#call"
match "/api/v1/users/me", via: :patch, to: "api/v1/users/me/update#call"
match "/community", via: :get, as: :community, to: "communities/show#call"
match "/email_confirmations", via: :post, as: :email_confirmation_list, to: "email_confirmations/create#call"
match "/email_confirmations/new", via: :get, as: :new_email_confirmation, to: "email_confirmations/new#call"
match "/home", via: :get, as: :home, to: "home/show#call"
match "/links", via: :post, as: :link_list, to: "links/create#call"
match "/links/new", via: :get, as: :new_link, to: "links/new#call"
match "/manifest", via: :get, as: :manifest, to: "manifests/show#call"
match "/new", via: :get, as: :new_post, to: "posts/new#call"
match "/notifications", via: :get, as: :notification_list, to: "notifications/index#call"
match "/password", via: :patch, as: :password, to: "passwords/update#call"
match "/password/edit", via: :get, as: :edit_password, to: "passwords/edit#call"
match "/password_reset", via: :get, as: :password_reset, to: "password_resets/new#call"
match "/password_reset", via: :post, to: "password_resets/create#call"
match "/posts", via: :post, as: :post_list, to: "posts/create#call"
match "/posts/:post_id", via: :delete, as: :post, to: "posts/destroy#call"
match "/posts/:post_id/stamp", via: :delete, as: :post_stamp, to: "stamps/destroy#call"
match "/posts/:post_id/stamp", via: :post, to: "stamps/create#call"
match "/privacy", via: :get, as: :privacy, to: "privacies/show#call"
match "/search", via: :get, as: :search, to: "search/show#call"
match "/settings", via: :get, as: :settings, to: "settings/index#call"
match "/settings/email", via: :get, as: :settings_email, to: "settings/emails/show#call"
match "/settings/email", via: :patch, to: "settings/emails/update#call"
match "/settings/profile", via: :get, as: :settings_profile, to: "settings/profiles/show#call"
match "/settings/profile", via: :patch, to: "settings/profiles/update#call"
match "/settings/user", via: :get, as: :settings_user, to: "settings/users/show#call"
match "/settings/user", via: :patch, to: "settings/users/update#call"
match "/sign_in", via: :get, as: :sign_in, to: "sessions/new#call"
match "/sign_in", via: :post, to: "sessions/create#call"
match "/sign_out", via: :delete, as: :sign_out, to: "sessions/destroy#call"
match "/sign_up", via: :get, as: :sign_up, to: "sign_up/new#call"
match "/sign_up", via: :post, to: "sign_up/create#call"
match "/terms", via: :get, as: :terms, to: "terms/show#call"
# standard:enable Layout/ExtraSpacing, Rails/MatchRoute
root "welcome/show#call"
end