Files
bit/config/routes.rb
T
Juan Rodriguez 3feaa5d88f refactor: Modal layout and turbolinks optimization
Reload with turbolinks, error messages, confirm password validation

Login and Signup modals
2021-06-14 15:10:56 -05:00

14 lines
328 B
Ruby

# frozen_string_literal: true
Rails.application.routes.draw do
root 'sessions#index'
get '/:slug', to: 'links#redirect', as: :short
get 'session/logout', to: 'sessions#destroy', as: :logout
post 'login', to: 'sessions#create', as: :login
resources :links, only: %i[create]
resources :users, only: %i[create]
end