From d695bf18f033b8793560e2282d3a44c0e58a5300 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 20 Dec 2024 14:10:55 -0500 Subject: [PATCH] use as internal API --- .../controllers/{api/json => }/theme_controller.ex | 2 +- lib/philomena_web/router.ex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename lib/philomena_web/controllers/{api/json => }/theme_controller.ex (74%) diff --git a/lib/philomena_web/controllers/api/json/theme_controller.ex b/lib/philomena_web/controllers/theme_controller.ex similarity index 74% rename from lib/philomena_web/controllers/api/json/theme_controller.ex rename to lib/philomena_web/controllers/theme_controller.ex index d9e2c28f..e00289c4 100644 --- a/lib/philomena_web/controllers/api/json/theme_controller.ex +++ b/lib/philomena_web/controllers/theme_controller.ex @@ -1,4 +1,4 @@ -defmodule PhilomenaWeb.Api.Json.ThemeController do +defmodule PhilomenaWeb.ThemeController do use PhilomenaWeb, :controller alias PhilomenaWeb.SettingView diff --git a/lib/philomena_web/router.ex b/lib/philomena_web/router.ex index a0744ac7..50b839f0 100644 --- a/lib/philomena_web/router.ex +++ b/lib/philomena_web/router.ex @@ -157,8 +157,6 @@ defmodule PhilomenaWeb.Router do resources "/posts", Forum.Topic.PostController, only: [:show, :index] end end - - resources "/themes", ThemeController, only: [:index] end scope "/", PhilomenaWeb do @@ -492,6 +490,8 @@ defmodule PhilomenaWeb.Router do resources "/tags", TagController, only: [:index] end + resources "/themes", ThemeController, only: [:index] + resources "/tags", TagController, only: [:index, :show] do resources "/tag_changes", Tag.TagChangeController, only: [:index] end