This repository was archived by the owner on Dec 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathroutes.rb
More file actions
67 lines (57 loc) · 2.32 KB
/
routes.rb
File metadata and controls
67 lines (57 loc) · 2.32 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Rails.application.routes.draw do
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
require 'sidekiq/web'
authenticate :admin_user, ->(u) { u.role.super_admin? } do
mount Sidekiq::Web => '/admin/sidekiq'
end
devise_for :users
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
namespace :api do
namespace :v1 do
get 'git_hub_statistics/averages', to: 'git_hub_statistics#oc_averages'
get 'git_hub_statistics/totals', to: 'git_hub_statistics#oc_totals'
get 'git_hub_statistics/by_repository', to: 'git_hub_statistics#totals_by_repository'
get 'git_hub_statistics/for_user', to: 'git_hub_statistics#totals_for_user'
get 'git_hub_statistics/user_in_repository', to: 'git_hub_statistics#totals_for_user_in_repository'
get '/status', to: 'status#all'
get '/status/protected', to: 'status#protected'
get '/users/by_location', to: 'users#by_location'
post '/users/profile/verify', to: 'users#verify'
resources :code_schools do
resources :locations
end
resources :email_list_recipients, only: :create
resources :events, only: :index
resources :jobs, only: :index
resources :mentors, only: [:index, :create, :show]
resources :requests, only: [:index, :create, :show, :update]
resources :resources, only: [:index, :create, :show, :update, :destroy] do
resources :votes, only: [:create, :destroy]
end
resources :scholarships, only: [:index, :show]
resources :scholarship_applications, only: :create
resources :services, only: :index
resources :slack_users, only: :create do
collection do
get :access
end
end
resource :social_users, only: [:create, :show]
resources :tags, only: :index
resources :team_members, only: [:index, :create, :update, :destroy]
resources :users, only: [:index, :create]
patch '/users', to: 'users#update'
devise_scope :user do
post '/sessions', to: 'sessions#create'
get '/sessions/sso', to: 'sessions#sso'
end
namespace :users do
post '/passwords/reset', to: 'passwords#reset'
end
namespace :airtable do
resources :mentorships, only: [:index, :create]
end
end
end
end