routes.rb 314 B

1234567891011
  1. Discite::Application.routes.draw do
  2. scope '/:locale' do
  3. resources :courses
  4. match '/courses/:id/run' => 'courses#run', via: [:get], as: 'course_start'
  5. devise_for :users, controllers: { registrations: 'registrations' }
  6. end
  7. match '/:locale' => 'home#index', via: [:get]
  8. root to: 'home#index'
  9. end