tabletop-companion/config/routes.rb

24 lines
565 B
Ruby
Raw Normal View History

2024-05-26 10:45:10 +00:00
# frozen_string_literal: true
2024-04-13 10:22:40 +00:00
Rails.application.routes.draw do
default_url_options host: "summonplayer.com"
2024-04-13 10:22:40 +00:00
2024-05-26 08:36:07 +00:00
root "tables#index"
2024-04-21 14:01:10 +00:00
get "login" => "sessions#new", as: :login
delete "logout" => "sessions#destroy", as: :logout
2024-05-26 08:36:07 +00:00
resources :users, only: [ :new, :create ]
resources :account_verifications, only: [ :show ]
resources :sessions, only: [ :new, :create, :destroy ]
2024-05-28 19:16:43 +00:00
resources :tables
2024-04-13 10:22:40 +00:00
2024-05-26 09:34:09 +00:00
resources :admin, only: [ :index ]
2024-05-26 10:42:48 +00:00
namespace :admin do
resources :game_systems
end
2024-05-26 09:34:09 +00:00
2024-04-14 19:01:32 +00:00
get "up" => "rails/health#show", as: :rails_health_check
2024-04-13 10:22:40 +00:00
end