alts, admin page, login
This commit is contained in:
1
config/initializers/session_store.rb
Normal file
1
config/initializers/session_store.rb
Normal file
@ -0,0 +1 @@
|
||||
Rails.application.config.session_store :cookie_store, key: "forcek.in", expire_after: 30.minutes
|
@ -27,4 +27,12 @@ Rails.application.routes.draw do
|
||||
get "bot/players" => "bot#players"
|
||||
get "bot/player/:id" => "bot#player_name"
|
||||
get "bot/summary" => "bot#summary"
|
||||
|
||||
# Admin
|
||||
get "admin", to: "admin#index"
|
||||
post "admin/set_alt", to: "admin#set_alt"
|
||||
post "admin/clear_alt", to: "admin#clear_alt"
|
||||
get "admin/login", to: "admin#login"
|
||||
post "admin/login_submit", to: "admin#login_submit"
|
||||
get "admin/destroy", to: "admin#destroy"
|
||||
end
|
||||
|
Reference in New Issue
Block a user