Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline :api do
- plug :accepts, ["json"]
- plug :fetch_session
- plug BlogApi.Plugs.SetUser
- end
- scope "/api", BlogApiWeb do
- pipe_through :api
- get "/posts", PostController, :index
- resources "/users", UserController, param: "uuid" do
- resources "/posts", PostController, except: [:index, :new, :edit], param: "uuid"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement