Created
March 22, 2021 16:58
-
-
Save freakflames29/c04cc878191db740bcdbe286bd88f842 to your computer and use it in GitHub Desktop.
Main routes for user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
# get 'deadpool/home' | |
# get 'sourav',to: 'deadpool#about' | |
# get 'deadpool/download' | |
root 'mains#index' | |
# registrations routes | |
get 'signup', to:'registrations#new' | |
post 'signup', to:'registrations#create' | |
# logout routes | |
delete 'logout', to:'sessions#destroy' | |
#login routes | |
get 'login',to:'sessions#new' | |
post 'login',to:'sessions#create' | |
#edit password | |
get 'password', to:'passwords#edit',as: :edit_password # for showing password edit field | |
patch 'password', to:'passwords#update' # for updating the password | |
#password reset urls | |
get 'password/reset', to:'password_resets#new' | |
post 'password/reset', to:'password_resets#create' | |
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment