alts, admin page, login

This commit is contained in:
2025-02-03 14:42:41 -08:00
parent 2d85fdb5cd
commit 5c0d9e9435
11 changed files with 214 additions and 45 deletions

View File

@ -0,0 +1 @@
Rails.application.config.session_store :cookie_store, key: "forcek.in", expire_after: 30.minutes

View File

@ -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