[deploy] Redirect /internal to /admin (#9716)

This commit is contained in:
rhymes 2020-08-10 20:36:30 +02:00 committed by GitHub
parent c23163171f
commit 7ffe7ba806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -430,6 +430,11 @@ Style/ClassAndModuleChildren:
Enabled: true
SafeAutoCorrect: true
Style/FormatStringToken:
Description: 'Use a consistent style for format string tokens.'
Exclude:
- 'config/routes.rb'
Style/OptionalBooleanParameter:
Description: 'Use keyword arguments when defining method with boolean argument.'
StyleGuide: '#boolean-keyword-arguments'

View file

@ -298,6 +298,8 @@ Rails.application.routes.draw do
delete "/messages/:id" => "messages#destroy"
patch "/messages/:id" => "messages#update"
get "/live/:username" => "twitch_live_streams#show"
get "/internal", to: redirect("/admin")
get "/internal/:path", to: redirect("/admin/%{path}")
post "/pusher/auth" => "pusher#auth"