2024-10-27 21:42:45 +00:00
|
|
|
# Copyright (C) 2024 Manuel Bustillo
|
|
|
|
|
2024-07-11 18:42:31 +02:00
|
|
|
Rails.application.routes.draw do
|
2024-11-30 19:09:04 +01:00
|
|
|
mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
|
2024-11-30 18:46:25 +01:00
|
|
|
devise_for :users, skip: [:registration, :session, :confirmation]
|
2024-11-30 14:24:02 +01:00
|
|
|
devise_scope :user do
|
|
|
|
post 'users', to: 'users/registrations#create'
|
|
|
|
|
|
|
|
post '/users/sign_in', to: 'users/sessions#create'
|
|
|
|
delete '/users/sign_out', to: 'users/sessions#destroy'
|
2024-11-30 18:46:25 +01:00
|
|
|
|
|
|
|
get '/users/confirmation', to: 'users/confirmations#show', as: :confirmation
|
2024-11-30 14:24:02 +01:00
|
|
|
end
|
|
|
|
|
2024-11-15 08:45:56 +01:00
|
|
|
mount Rswag::Ui::Engine => '/api-docs'
|
|
|
|
mount Rswag::Api::Engine => '/api-docs'
|
2024-08-11 16:29:10 +02:00
|
|
|
resources :groups, only: :index
|
2024-11-17 18:24:43 +01:00
|
|
|
resources :guests, only: %i[index create update destroy] do
|
2024-10-27 14:03:13 +01:00
|
|
|
post :bulk_update, on: :collection
|
2024-07-25 10:47:49 +02:00
|
|
|
end
|
2024-11-11 07:43:42 +01:00
|
|
|
resources :expenses, only: %i[index update] do
|
2024-10-28 23:01:46 +01:00
|
|
|
get :summary, on: :collection
|
|
|
|
end
|
2024-11-11 07:43:42 +01:00
|
|
|
resources :tables_arrangements, only: %i[index show]
|
2024-07-11 18:42:31 +02:00
|
|
|
|
2024-08-01 18:27:41 +00:00
|
|
|
get 'up' => 'rails/health#show', as: :rails_health_check
|
2024-11-30 19:09:04 +01:00
|
|
|
|
|
|
|
root to: redirect('/dashboard')
|
2024-07-11 18:42:31 +02:00
|
|
|
end
|