Rails.application.routes.draw do
  devise_for :users
  resources :users
  resources :courses do
    resources :events
    resources :documents
    resources :document_categories
    resources :moderations
  end
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  root 'home#index'
end
