Skip to content

Instantly share code, notes, and snippets.

@ttanimichi
Last active April 22, 2017 12:01
Show Gist options
  • Save ttanimichi/60d6cb9b01d863d7ea42ac77bf137aee to your computer and use it in GitHub Desktop.
Save ttanimichi/60d6cb9b01d863d7ea42ac77bf137aee to your computer and use it in GitHub Desktop.
Mastodon のルーティング
/mastodon # bin/rails routes
Prefix Verb URI Pattern Controller#Action
sidekiq /sidekiq Sidekiq::Web
pghero /pghero PgHero::Engine
GET /oauth/authorize/:code(.:format) oauth/authorizations#show
oauth_authorization GET /oauth/authorize(.:format) oauth/authorizations#new
DELETE /oauth/authorize(.:format) oauth/authorizations#destroy
POST /oauth/authorize(.:format) oauth/authorizations#create
oauth_token POST /oauth/token(.:format) doorkeeper/tokens#create
oauth_revoke POST /oauth/revoke(.:format) doorkeeper/tokens#revoke
oauth_applications GET /oauth/applications(.:format) doorkeeper/applications#index
POST /oauth/applications(.:format) doorkeeper/applications#create
new_oauth_application GET /oauth/applications/new(.:format) doorkeeper/applications#new
edit_oauth_application GET /oauth/applications/:id/edit(.:format) doorkeeper/applications#edit
oauth_application GET /oauth/applications/:id(.:format) doorkeeper/applications#show
PATCH /oauth/applications/:id(.:format) doorkeeper/applications#update
PUT /oauth/applications/:id(.:format) doorkeeper/applications#update
DELETE /oauth/applications/:id(.:format) doorkeeper/applications#destroy
oauth_authorized_applications GET /oauth/authorized_applications(.:format) oauth/authorized_applications#index
oauth_authorized_application DELETE /oauth/authorized_applications/:id(.:format) oauth/authorized_applications#destroy
oauth_token_info GET /oauth/token/info(.:format) doorkeeper/token_info#show
host_meta GET /.well-known/host-meta(.:format) well_known/host_meta#show {:format=>"xml"}
webfinger GET /.well-known/webfinger(.:format) well_known/webfinger#show {:format=>"json"}
new_user_password GET /auth/password/new(.:format) auth/passwords#new
edit_user_password GET /auth/password/edit(.:format) auth/passwords#edit
user_password PATCH /auth/password(.:format) auth/passwords#update
PUT /auth/password(.:format) auth/passwords#update
POST /auth/password(.:format) auth/passwords#create
cancel_user_registration GET /auth/cancel(.:format) auth/registrations#cancel
new_user_registration GET /auth/sign_up(.:format) auth/registrations#new
edit_user_registration GET /auth/edit(.:format) auth/registrations#edit
user_registration PATCH /auth(.:format) auth/registrations#update
PUT /auth(.:format) auth/registrations#update
DELETE /auth(.:format) auth/registrations#destroy
POST /auth(.:format) auth/registrations#create
new_user_confirmation GET /auth/confirmation/new(.:format) auth/confirmations#new
user_confirmation GET /auth/confirmation(.:format) auth/confirmations#show
POST /auth/confirmation(.:format) auth/confirmations#create
new_user_session GET /auth/sign_in(.:format) auth/sessions#new
user_session POST /auth/sign_in(.:format) auth/sessions#create
destroy_user_session DELETE /auth/sign_out(.:format) auth/sessions#destroy
GET /users/:username(.:format) redirect(301, /@%{username}) {:format=>:html}
embed_account_stream_entry GET /users/:account_username/updates/:id/embed(.:format) stream_entries#embed
account_stream_entry GET /users/:account_username/updates/:id(.:format) stream_entries#show
account_remote_follow GET /users/:account_username/remote_follow(.:format) remote_follow#new
POST /users/:account_username/remote_follow(.:format) remote_follow#create
followers_account GET /users/:username/followers(.:format) accounts#followers
following_account GET /users/:username/following(.:format) accounts#following
follow_account POST /users/:username/follow(.:format) accounts#follow
unfollow_account POST /users/:username/unfollow(.:format) accounts#unfollow
account GET /users/:username(.:format) accounts#show
short_account GET /@:username(.:format) accounts#show
short_account_status GET /@:account_username/:id(.:format) statuses#show
settings_profile GET /settings/profile(.:format) settings/profiles#show
PATCH /settings/profile(.:format) settings/profiles#update
PUT /settings/profile(.:format) settings/profiles#update
settings_preferences GET /settings/preferences(.:format) settings/preferences#show
PATCH /settings/preferences(.:format) settings/preferences#update
PUT /settings/preferences(.:format) settings/preferences#update
settings_import GET /settings/import(.:format) settings/imports#show
POST /settings/import(.:format) settings/imports#create
settings_export GET /settings/export(.:format) settings/exports#show
settings_exports_follows GET /settings/exports/follows(.:format) settings/exports/following_accounts#index {:format=>:csv}
settings_exports_blocks GET /settings/exports/blocks(.:format) settings/exports/blocked_accounts#index {:format=>:csv}
settings_exports_mutes GET /settings/exports/mutes(.:format) settings/exports/muted_accounts#index {:format=>:csv}
disable_settings_two_factor_auth POST /settings/two_factor_auth/disable(.:format) settings/two_factor_auths#disable
new_settings_two_factor_auth GET /settings/two_factor_auth/new(.:format) settings/two_factor_auths#new
settings_two_factor_auth GET /settings/two_factor_auth(.:format) settings/two_factor_auths#show
POST /settings/two_factor_auth(.:format) settings/two_factor_auths#create
medium GET /media/:id(.:format) media#show
tag GET /tags/:id(.:format) tags#show
authorize_follow GET /authorize_follow(.:format) authorize_follow#new
POST /authorize_follow(.:format) authorize_follow#create
admin_pubsubhubbub_index GET /admin/pubsubhubbub(.:format) admin/pubsubhubbub#index
admin_domain_blocks GET /admin/domain_blocks(.:format) admin/domain_blocks#index
POST /admin/domain_blocks(.:format) admin/domain_blocks#create
new_admin_domain_block GET /admin/domain_blocks/new(.:format) admin/domain_blocks#new
admin_settings GET /admin/settings(.:format) admin/settings#index
admin_setting PATCH /admin/settings/:id(.:format) admin/settings#update
PUT /admin/settings/:id(.:format) admin/settings#update
resolve_admin_report POST /admin/reports/:id/resolve(.:format) admin/reports#resolve
silence_admin_report POST /admin/reports/:id/silence(.:format) admin/reports#silence
suspend_admin_report POST /admin/reports/:id/suspend(.:format) admin/reports#suspend
remove_admin_report POST /admin/reports/:id/remove(.:format) admin/reports#remove
admin_reports GET /admin/reports(.:format) admin/reports#index
admin_report GET /admin/reports/:id(.:format) admin/reports#show
admin_account_silence DELETE /admin/accounts/:account_id/silence(.:format) admin/silences#destroy
POST /admin/accounts/:account_id/silence(.:format) admin/silences#create
admin_account_suspension DELETE /admin/accounts/:account_id/suspension(.:format) admin/suspensions#destroy
POST /admin/accounts/:account_id/suspension(.:format) admin/suspensions#create
admin_accounts GET /admin/accounts(.:format) admin/accounts#index
admin_account GET /admin/accounts/:id(.:format) admin/accounts#show
admin GET /admin(.:format) redirect(302, /admin/settings)
api_subscription GET /api/subscriptions/:id(.:format) api/subscriptions#show
api POST /api/subscriptions/:id(.:format) api/subscriptions#update
api_push POST /api/push(.:format) api/push#update
api_salmon POST /api/salmon/:id(.:format) api/salmon#update
api_oembed GET /api/oembed(.:format) api/oembed#show
context_api_v1_status GET /api/v1/statuses/:id/context(.:format) api/v1/statuses#context
card_api_v1_status GET /api/v1/statuses/:id/card(.:format) api/v1/statuses#card
reblogged_by_api_v1_status GET /api/v1/statuses/:id/reblogged_by(.:format) api/v1/statuses#reblogged_by
favourited_by_api_v1_status GET /api/v1/statuses/:id/favourited_by(.:format) api/v1/statuses#favourited_by
reblog_api_v1_status POST /api/v1/statuses/:id/reblog(.:format) api/v1/statuses#reblog
unreblog_api_v1_status POST /api/v1/statuses/:id/unreblog(.:format) api/v1/statuses#unreblog
favourite_api_v1_status POST /api/v1/statuses/:id/favourite(.:format) api/v1/statuses#favourite
unfavourite_api_v1_status POST /api/v1/statuses/:id/unfavourite(.:format) api/v1/statuses#unfavourite
api_v1_statuses POST /api/v1/statuses(.:format) api/v1/statuses#create
api_v1_status GET /api/v1/statuses/:id(.:format) api/v1/statuses#show
DELETE /api/v1/statuses/:id(.:format) api/v1/statuses#destroy
api_v1_home_timeline GET /api/v1/timelines/home(.:format) api/v1/timelines#home
api_v1_public_timeline GET /api/v1/timelines/public(.:format) api/v1/timelines#public
api_v1_hashtag_timeline GET /api/v1/timelines/tag/:id(.:format) api/v1/timelines#tag
api_v1_search GET /api/v1/search(.:format) api/v1/search#index
api_v1_follows POST /api/v1/follows(.:format) api/v1/follows#create
api_v1_media POST /api/v1/media(.:format) api/v1/media#create
api_v1_apps POST /api/v1/apps(.:format) api/v1/apps#create
api_v1_blocks GET /api/v1/blocks(.:format) api/v1/blocks#index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment