Last active
August 29, 2015 14:23
-
-
Save adanselm/7c75584feb4285317fbb to your computer and use it in GitHub Desktop.
Obesebird_api router
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
defmodule ObesebirdApi.Router do | |
use ObesebirdApi.Web, :router | |
pipeline :api do | |
plug :accepts, ["json"] | |
end | |
scope "/api", ObesebirdApi do | |
pipe_through :api | |
scope "/v1", V1, as: :v1 do | |
resources "/categories", CategoryController, except: [:new, :edit] | |
resources "/posts", PostController, except: [:new, :edit] | |
resources "/slots", SlotController, except: [:new, :edit] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment