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
|
2024-06-11 10:45:22 +00:00
|
|
|
default_url_options host: "ttcompanion.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-06-04 08:09:59 +00:00
|
|
|
resources :users, only: [ :new, :create, :show, :edit, :update ] do
|
|
|
|
resource :password, only: [ :edit, :update ]
|
|
|
|
end
|
2024-05-26 08:36:07 +00:00
|
|
|
resources :account_verifications, only: [ :show ]
|
2024-06-03 10:54:38 +00:00
|
|
|
resources :password_resets, only: [ :new, :create, :edit, :update ]
|
2024-05-26 08:36:07 +00:00
|
|
|
resources :sessions, only: [ :new, :create, :destroy ]
|
|
|
|
|
2024-06-07 15:53:32 +00:00
|
|
|
resources :character_sheet_sections, only: [ :destroy ] do
|
2024-06-12 16:51:57 +00:00
|
|
|
resources :counters, only: [ :new, :create ]
|
2024-06-07 15:53:32 +00:00
|
|
|
resources :stats, only: [ :new, :create ]
|
|
|
|
end
|
2024-06-06 13:18:10 +00:00
|
|
|
resources :characters do
|
|
|
|
resources :character_sheet_sections, only: [ :index, :new, :create ]
|
|
|
|
end
|
2024-06-12 16:51:57 +00:00
|
|
|
resources :counters, only: [ :update, :destroy ]
|
2024-06-11 10:37:58 +00:00
|
|
|
resources :stats, only: [ :update, :destroy ]
|
2024-05-29 15:47:31 +00:00
|
|
|
resources :table_invites, only: [ :index, :edit, :update ]
|
2024-05-29 14:24:18 +00:00
|
|
|
resources :tables do
|
2024-06-12 17:20:14 +00:00
|
|
|
resources :characters, only: [ :show ]
|
2024-06-13 12:24:54 +00:00
|
|
|
resources :events, only: [ :index ]
|
2024-05-29 14:24:18 +00:00
|
|
|
resources :table_invites, only: [ :new, :create ]
|
|
|
|
end
|
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-05-30 07:28:37 +00:00
|
|
|
mount MissionControl::Jobs::Engine, at: "/admin/jobs" if Rails.env.production?
|
2024-04-13 10:22:40 +00:00
|
|
|
end
|