Skip to content

Commit

Permalink
Add 303s for useful well-known uris
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan8902 committed May 13, 2024
1 parent 6963d76 commit 2ad41b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ def matches?(request)
get "listens/:id", to: redirect("/music/listens/%{id}")
get "playorslay", to: redirect("/slayorplay")

#303s
get ".well-known/change-password", to: redirect("/users/settings", status: 303)
get ".well-known/security.txt", to: redirect("/security.txt", status: 303)

get "" => "static_pages#index", as: "root"

get "accounts/all" => "accounts#all", as: "all_accounts"
Expand Down

0 comments on commit 2ad41b8

Please sign in to comment.