Created
December 29, 2022 13:45
-
-
Save DevGW/e66d72d2d2db043a915f653eb97b6060 to your computer and use it in GitHub Desktop.
Ruby / Rails :: routes for api only
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
namespace :api, :defaults => { :format => :json } do | |
namespace :v1 do | |
resources :shots | |
# get 'cocktails/categories', to: 'cocktails#categories' | |
# namespace :cocktails do | |
# end | |
end | |
end | |
devise_for :users, | |
controllers: { | |
sessions: 'users/sessions', | |
registrations: 'users/registrations' | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment