Rails.application.routes.draw do devise_for :users, controllers: {registrations: "registrations", confirmations: "confirmations"} scope module: :public do root to: "home#index" resource :personal_profile, path: "profile" resources :events do resources :feedback, controller: "event_feedbacks", only: [:new, :create] resource :feedback_qr_code, controller: "event_feedback_qrcodes", only: :show member do get :confirm end end resources :volunteers do member do get :confirm, to: "volunteer_confirmations#create" end end resources :volunteer_teams, only: [:index] resources :feedback, as: "conference_feedbacks", controller: "conference_feedbacks", only: [:new, :create, :index] end namespace :api do resources :conferences, only: [:index] do resources :events, only: :index do collection do get :halfnarp_friendly end end resources :speakers, only: :index resources :tracks, only: :index resources :event_types, only: :index resources :halls, only: :index resources :slots, only: :index resources :volunteers end end namespace :management do root to: "conferences#index" resources :conferences do member do patch :update_vote_data get :vote_results end resources :events do member do get :conflicts end end resources :volunteers resources :propositions resources :sponsorship_offers resource :call_for_participation, only: [:create, :destroy] resources :feedback, controller: :feedback, only: :index resources :personal_profiles do member do put :toggle_admin end end end end end