a guest Aug 19th, 2019 76 Never
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
- 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"
RAW Paste Data