All basic question types
This commit is contained in:
parent
3e1e5618ca
commit
4fe218166f
51 changed files with 760 additions and 92 deletions
|
@ -35,5 +35,6 @@ module EntranceExam
|
|||
#
|
||||
# config.time_zone = "Central Time (US & Canada)"
|
||||
# config.eager_load_paths << Rails.root.join("extras")
|
||||
config.entrance_exam_token = "password"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -10,5 +10,15 @@ Rails.application.routes.draw do
|
|||
# get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
|
||||
|
||||
# Defines the root path route ("/")
|
||||
# root "posts#index"
|
||||
root "sessions#new"
|
||||
|
||||
resources "sessions", only: [:new, :create]
|
||||
|
||||
resources "sections", only: [:index, :show]
|
||||
|
||||
resources "questions", only: [] do
|
||||
member do
|
||||
put :answer
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue