Created
May 16, 2017 19:48
-
-
Save jeanpaulsio/1614d76faebc7d2646050fc3f9c30f19 to your computer and use it in GitHub Desktop.
API routes 1
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 | |
# API Routes | |
namespace :api, defaults: { format: 'json' } do | |
namespace :v1 do | |
# Routes for authentication will go here | |
resources :recipients | |
resources :messages, only: [:create] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment