evodata/config/routes.rb

24 lines
690 B
Ruby

Rails.application.routes.draw do
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
root "static_pages#home"
post "sign_up", to: "accounts#create"
get "sign_up", to: "accounts#new"
put "account", to: "accounts#update"
get "account", to: "accounts#edit"
delete "account", to: "accounts#destroy"
resources :confirmations, only: [:create, :edit, :new], param: :confirmation_token
post "login", to: "sessions#create"
delete "logout", to: "sessions#destroy"
get "login", to: "sessions#new"
resources :passwords, only: [:create, :edit, :new, :update], param: :password_reset_token
resources :checks
resources :users
end