-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathroutes.rb
36 lines (25 loc) · 1.02 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
# Can be used by load balancers and uptime monitors to verify that the app is live.
get "up" => "rails/health#show", as: :rails_health_check
devise_for :users, controllers: {
omniauth_callbacks: 'users/omniauth_callbacks',
registrations: 'users/registrations'
}
root to: "subjects#index"
resource :profile, only: :show
resources :subject_groups, only: :show
resources :approvables, only: [] do
resource :approval, only: [:create, :destroy]
end
resources :subjects do
collection do
get :all
end
end
resource :user_onboardings, only: :update
resources :current_optional_subjects, only: :index
resources :academic_histories, only: [:new, :create, :index]
resources :planned_subjects, only: [:index, :create, :destroy], param: :subject_id
end