Skip to content
Snippets Groups Projects
Select Git revision
  • 8f79bf35bdf24ead3f81c8109be186d8f009ba0a
  • main default protected
  • renovate/solid_queue-1.x-lockfile
  • renovate/importmap-rails-2.x-lockfile
  • renovate/redis-5.x-lockfile
  • renovate/ruby
  • renovate/selenium-webdriver-4.x-lockfile
  • renovate/icalendar-2.x-lockfile
  • renovate/debug-1.x-lockfile
  • renovate/turbo-rails-2.x-lockfile
  • renovate/gcr.io-kaniko-project-executor-1.x
  • eh22 protected
  • update-rubocop
13 results

routes.rb

Blame
  • Felix Eckhofer's avatar
    tribut authored
    4d55119c
    History
    routes.rb 1.84 KiB
    Rails.application.routes.draw do
      devise_for :users
      mount Crono::Engine, at: '/crono'
      mount ActionCable.server => '/cable'
    
      get 'speakers/show'
      get 'users/leaderboard'
    
      # 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
    
      # Defines the root path route ("/")
      # root "posts#index"
      root "conferences#index"
    
      resources :conferences, param: :slug do
        get 'stats', on: :member
        get ':date', action: :show, on: :member, as: :date, date: /\d{4}-\d{2}-\d{2}/
        resources :sessions, param: :ref_id do
          member do
            patch :update_notes
          end
          resources :assignments, only: [:create, :destroy]
          resources :candidates, only: [:create, :destroy]
          delete 'candidates', to: 'candidates#destroy_self'
        end
        resources :speakers, param: :ref_id
      end
    
      resources :assignments, only: [:index] do
        get 'for/:user_id', action: 'by_user', on: :collection, as: :user
      end
      resources :sessions, param: :ref_id
    
      resources :filedrop_files, only: [] do
        member do
          get 'download', to: 'filedrop_files#download'
        end
      end
    
      # get 'conferences/:slug', to: 'conferences#show', as: :conference
      # get 'conferences/:slug/:date', to: 'conferences#show', as: :conference_day
      # get 'conferences/:slug/session/:ref_id', to: 'sessions#show', as: :conference_session
      # post 'conferences/:slug/session/:ref_id/assignments', to: 'sessions#assign_user', as: :assign_user_session
      # delete 'conferences/:slug/session/:ref_id/assignments', to: 'sessions#unassign_user', as: :unassign_user_session
      # get 'assignments', to: 'assignments#index', as: :assignments
      # get 'assignments/:user_id', to: 'assignments#index', as: :user_assignments
    end