feat: ✨ Sessions controller
Sessions helper methods, login and signup modals, load partial views with stimulus Situmuls usersController, Create and Destroy user sessions
This commit is contained in:
+5
-2
@@ -1,10 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Rails.application.routes.draw do
|
||||
root 'links#index'
|
||||
root 'sessions#welcome'
|
||||
|
||||
get '/:slug', to: 'links#redirect', as: :short
|
||||
|
||||
post 'login', to: 'sessions#create', as: :login
|
||||
post 'logout', to: 'sessions#destroy', as: :logout
|
||||
|
||||
resources :links, only: %i[create]
|
||||
resources :users, only: %i[new create]
|
||||
resources :users, only: %i[create]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user