-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.rb
More file actions
32 lines (32 loc) · 1.12 KB
/
routes.rb
File metadata and controls
32 lines (32 loc) · 1.12 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
Rails.application.routes.draw do
get "/privacy", to: "static_pages#privacy"
get "/terms", to: "static_pages#terms"
get "sign_in", to: "sessions#new"
post "sign_in", to: "sessions#create"
get "sign_up", to: "registrations#new"
post "sign_up", to: "registrations#create"
resources :sessions, only: [ :index, :show, :destroy ]
resource :password, only: [ :edit, :update ]
namespace :identity do
resource :email, only: [ :edit, :update ]
resource :email_verification, only: [ :show, :create ]
resource :password_reset, only: [ :new, :edit, :create, :update ]
end
get "/auth/failure", to: "sessions/omniauth#failure"
get "/auth/:provider/callback", to: "sessions/omniauth#create"
post "/auth/:provider/callback", to: "sessions/omniauth#create"
get "up" => "rails/health#show", as: :rails_health_check
resources :startups do
member do
post :like
end
end
root "startups#index"
get "search", to: "startups#search", as: :search
resources :roles do
member do
get :confirm_applicant
end
resources :applications, only: [ :create ]
end
end