# frozen_string_literal: true Rails.application.routes.draw do devise_for :users, controllers: { sessions: "users/sessions", registrations: "users/registrations", omniauth_callbacks: "users/omniauth_callbacks" }, skip: [:session] devise_scope :user do get "login", to: "users/sessions#new", as: :new_user_session get "login", to: "users/sessions#new", as: :login get "logout", controller: "users/sessions", action: "destroy" post "/login", controller: "users/sessions", action: "create", as: :user_session end end