DVGM/config/routes.rb

22 lines
786 B
Ruby
Raw Permalink Normal View History

2017-10-22 18:56:44 +00:00
Rails.application.routes.draw do
get 'welcome/index'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
resources :lectures, only: [:index, :new, :create]
#resource :account, :controller => "users"
resources :users, only: [:index, :new, :create]
2019-02-21 21:54:26 +00:00
get '/reset_password', to: 'users#reset_password', as: :reset_password
patch '/reset_password', to: 'users#reset_password'
2017-10-22 18:56:44 +00:00
#resource :user_sessions, only: [:create]
delete '/sign_out', to: 'user_sessions#destroy', as: :sign_out
get '/sign_in', to: 'user_sessions#new', as: :sign_in
post '/sign_in', to: 'user_sessions#create'
resources :grades, only: [:new, :create, :index, :edit, :update]
2019-02-21 21:54:26 +00:00
post '/reports', to: 'reports#create'
2017-10-22 18:56:44 +00:00
root to: "welcome#index"
end