You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
947 B
39 lines
947 B
Rails.application.routes.draw do
|
|
resources :question_lists
|
|
resources :questions
|
|
resources :categories
|
|
resources :districts do
|
|
resources :schools, only: [:index, :show] do
|
|
resources :dashboard, only: [:index]
|
|
resources :browse, only: [:show]
|
|
end
|
|
end
|
|
|
|
resources :schools do
|
|
resources :recipient_lists
|
|
resources :recipients do
|
|
collection do
|
|
get :import
|
|
post :import
|
|
end
|
|
end
|
|
resources :schedules
|
|
resources :categories, only: [:show]
|
|
resources :questions, only: [:show]
|
|
get :admin
|
|
end
|
|
|
|
# resources :attempts, only: [:get, :update]
|
|
|
|
devise_for :users
|
|
as :user do
|
|
get 'users', :to => 'users#show', :as => :user_root # Rails 3
|
|
end
|
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
|
|
|
get '/admin', to: 'admin#index', as: 'admin'
|
|
post '/twilio', to: 'attempts#twilio'
|
|
|
|
root to: "welcome#index"
|
|
end
|