Files
aperonight/config/routes.rb
Kevin BATAILLE c226adc36c feat: implement flash messages system with auto-dismiss notifications
- Add flash message helper and styles for consistent notifications
- Replace Devise error messages with flash-based notifications
- Add dashboard page with event statistics
- Configure SMTP settings for development and production
- Update authentication controllers to use flash messages
- Add JavaScript controller for auto-dismiss functionality
2025-08-26 18:29:56 +02:00

54 lines
2.2 KiB
Ruby

Rails.application.routes.draw do
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
# Can be used by load balancers and uptime monitors to verify that the app is live.
get "up" => "rails/health#show", as: :rails_health_check
# Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
# get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
# get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
# Defines the root path route ("/")
root "pages#home"
# Pages
get "dashboard", to: "pages#dashboard", as: "dashboard"
# Parties
get "parties", to: "parties#index", as: "parties"
get "parties/:slug.:id", to: "parties#show", as: "party"
# Routes for devise authentication Gem
# Bind devise to user
# devise_for :users
devise_for :users, path: "auth", path_names: {
sign_in: "sign_in", # Route for user login
sign_out: "sign_out", # Route for user logout
password: "reset-password", # Route for changing password
confirmation: "verification", # Route for account confirmation
unlock: "unblock", # Route for account unlock
# registration: "account", # Route for user account
sign_up: "signup" # Route for user registration
},
controllers: {
sessions: "authentications/sessions", # Custom controller for sessions
registrations: "authentications/registrations", # Custom controller for registrations
passwords: "authentications/passwords", # Custom controller for passwords
confirmation: "authentications/confirmations" # Custom controller for confirmations
}
# API routes versioning
namespace :api do
namespace :v1 do
# RESTful routes for party management
resources :parties, only: [ :index, :show, :create, :update, :destroy ]
# resources :bundles, only: [ :index, :show, :create, :update, :destroy ]
# Additional API endpoints can be added here as needed
# Example: search, filtering, user-specific endpoints
end
end
end