27 lines
850 B
Ruby
Raw Normal View History

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 18:46:25 +01:00
devise_for :users, skip: [:registration, :session, :confirmation]
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
end
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
post :bulk_update, on: :collection
2024-07-25 10:47:49 +02:00
end
resources :expenses, only: %i[index update] do
2024-10-28 23:01:46 +01:00
get :summary, on: :collection
end
resources :tables_arrangements, only: %i[index show]
2024-07-11 18:42:31 +02:00
get 'up' => 'rails/health#show', as: :rails_health_check
2024-07-11 18:42:31 +02:00
end