Skip to content

Instantly share code, notes, and snippets.

@juque
Created July 5, 2021 10:40
Show Gist options
  • Save juque/1f5b5fa9bd3af7923a1aa74789512edc to your computer and use it in GitHub Desktop.
Save juque/1f5b5fa9bd3af7923a1aa74789512edc to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
match '/auth/:provider/callback', to: 'session#create', via: [:get, :post]
get '/auth/logout', to: 'session#destroy', as: :logout
get '/dashboard', to: 'dashboard#index'
get 'session/create'
get 'dashboard/index'
get 'welcome/index'
root to: 'welcome#index'
# 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