From 2ad41b8cc7ba1c2b0f705baa407bd584cc80134a Mon Sep 17 00:00:00 2001 From: Dylan Jones Date: Mon, 13 May 2024 21:47:43 +0100 Subject: [PATCH] Add 303s for useful well-known uris --- config/routes.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 8adc228..64be996 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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"