routes.rb 285 Bytes
Newer Older
1
# Registers all routes for the app.
Zac Wood's avatar
Zac Wood committed
2
Rails.application.routes.draw do
3
  scope :api do # Register /api routes
4
5
    resources :courses, only: [:index, :show]
    resources :course_sections, only: [:index]
6
    resources :schedules, only: [:index]
Zac Wood's avatar
Zac Wood committed
7
8
  end

9
  get '/', to: redirect('/api')
Zac Wood's avatar
Zac Wood committed
10
end