resource :notification_configs, only: [:show, :update]

scope module: :legacy do
  resources :assignments, only: [:index, :show]
  resources :grade_postings, only: :index
  resources :homework, only: [:index, :show]
  resources :service_logs, only: [:index, :create, :update, :destroy] do
    get :statistics, on: :collection
  end

  resource :download_schedule, only: :show, controller: :download_schedule

  namespace :calendar do
    resources :events, only: [:index, :show]
  end

  resources :classrooms, only: [:index, :show] do
    scope module: :classrooms do
      resources :assignments, only: [:index, :show]
      resources :lesson_plans, only: [:index, :show]
    end
  end
end

namespace :discipline do
  resources :detentions, only: :index
  resources :logs, only: :index
end
