From 46602460ea586315430f49ade6e2cbdff003d383 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 20 Dec 2019 12:44:45 -0500 Subject: [PATCH] rearrange plugs --- lib/philomena_web/plugs/api_token_plug.ex | 2 +- lib/philomena_web/router.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/plugs/api_token_plug.ex b/lib/philomena_web/plugs/api_token_plug.ex index e5f1ed8f..9bac8696 100644 --- a/lib/philomena_web/plugs/api_token_plug.ex +++ b/lib/philomena_web/plugs/api_token_plug.ex @@ -29,4 +29,4 @@ defmodule PhilomenaWeb.ApiTokenPlug do Plug.assign_current_user(conn, user, config) end -end \ No newline at end of file +end diff --git a/lib/philomena_web/router.ex b/lib/philomena_web/router.ex index 92aa7851..2987ace4 100644 --- a/lib/philomena_web/router.ex +++ b/lib/philomena_web/router.ex @@ -80,7 +80,7 @@ defmodule PhilomenaWeb.Router do end 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] end