Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule ApiTest.Router do
- use ApiTest.Web, :router
- pipeline :api do
- plug :accepts, ["json"]
- end
- scope "/" do
- pipe_through :api
- scope "/v1", as: :v1 do
- resources "/posts", PostController, except: [:new, :edit]
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement