We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
:api
1 parent 0b600f9 commit 39218e5Copy full SHA for 39218e5
1 file changed
lib/zout_web/router.ex
@@ -16,10 +16,6 @@ defmodule ZoutWeb.Router do
16
plug ZoutWeb.Auth.Pipeline
17
end
18
19
- pipeline :api do
20
- plug :accepts, ["html", "json"]
21
- end
22
-
23
pipeline :admin do
24
plug :admin_only
25
@@ -43,11 +39,6 @@ defmodule ZoutWeb.Router do
43
39
44
40
45
41
46
- # Other scopes may use custom stacks.
47
- # scope "/api", ZoutWeb do
48
- # pipe_through :api
49
- # end
50
51
42
defp admin_only(conn, _opts) do
52
alias Zout.Data
53
user = Guardian.Plug.current_resource(conn)
0 commit comments