Created
June 19, 2019 06:22
-
-
Save siddhant3030/9bec6a3bb189d86e3cbad30b34ddf30c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
get '/login' => 'admin/sessions#new' | |
get '/logout' => 'admin/sessions#destroy' | |
namespace :admin do | |
resources :posts | |
resources :sessions, only: [:new, :create, :destroy] | |
resources :moderators, only: [:index, :edit, :update] | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment