rearrange plugs

This commit is contained in:
byte[] 2019-12-20 12:44:45 -05:00
parent a7d9386af8
commit 46602460ea
2 changed files with 2 additions and 2 deletions

View file

@ -29,4 +29,4 @@ defmodule PhilomenaWeb.ApiTokenPlug do
Plug.assign_current_user(conn, user, config) Plug.assign_current_user(conn, user, config)
end end
end end

View file

@ -80,7 +80,7 @@ defmodule PhilomenaWeb.Router do
end end
scope "/api/v1/rss", PhilomenaWeb.Api.Rss, as: :api_rss do scope "/api/v1/rss", PhilomenaWeb.Api.Rss, as: :api_rss do
pipe_through [:accepts_rss, :protected, :api] pipe_through [:accepts_rss, :api, :protected]
resources "/watched", WatchedController, only: [:index] resources "/watched", WatchedController, only: [:index]
end end