-
Notifications
You must be signed in to change notification settings - Fork 1
/
routes.rb
31 lines (31 loc) · 1.51 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
Rails.application.routes.draw do
get 'password_resets/create'
get 'password_resets/edit'
get 'password_resets/update'
use_doorkeeper_openid_connect
use_doorkeeper
root 'sessions#new'
resources :sessions, only: [:new, :create]
get '/interlegis' => 'services_auth#interlegis_sign_in_page', :as => 'interlegis_page'
post '/interlegis' => 'services_auth#interlegis_sign_in', :as => 'interlegis'
get '/senado' => 'services_auth#cas_sign_in', :as => 'cas_senado'
get '/login' => 'sessions#new', :as => :login
get '/sessions' => 'sessions#new'
delete 'logout' => 'sessions#destroy', :as => :logout
resources :users, only: [:new, :create]
get '/users' => 'users#show', :as => 'user'
patch '/users' => 'users#update'
get '/panel' => 'users#panel', as: 'panel_keys'
put '/users' => 'users#update'
get '/users/completar' => 'users#complete_info', :as => 'complete_user_info'
get '/users/cep' => 'users#verifica_cep', :as => 'cep_search'
get '/users/edit' => 'users#edit', :as => 'edit_user'
get '/users/password' => 'users#edit_pw', :as => 'edit_password'
post "oauth/callback" => "services_auth#callback"
get "oauth/callback" => "services_auth#callback"
get "oauth/:provider" => "services_auth#oauth", :as => :auth_at_provider
get 'api/level' => 'api_accesses#verify_api_level', :as => :api_level_verification
resources :api_accesses, path: 'api', only: [:new, :create, :update]
post 'api/create_remote' => 'api_accesses#create_remote'
resources :password_resets, only: [:create, :edit, :update]
end