Skip to content

Instantly share code, notes, and snippets.

@adanselm
Last active August 29, 2015 14:23
Show Gist options
  • Save adanselm/7c75584feb4285317fbb to your computer and use it in GitHub Desktop.
Save adanselm/7c75584feb4285317fbb to your computer and use it in GitHub Desktop.
Obesebird_api router
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