From bef0337fe5cc764403cf492d772539ba9dd7801c Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Tue, 20 Feb 2024 09:42:21 -0800 Subject: [PATCH] Renamed MediaItem controller namespace --- .../controllers/{media => media_items}/media_item_controller.ex | 2 +- .../controllers/{media => media_items}/media_item_html.ex | 2 +- .../{media => media_items}/media_item_html/show.html.heex | 0 lib/pinchflat_web/router.ex | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename lib/pinchflat_web/controllers/{media => media_items}/media_item_controller.ex (93%) rename lib/pinchflat_web/controllers/{media => media_items}/media_item_html.ex (57%) rename lib/pinchflat_web/controllers/{media => media_items}/media_item_html/show.html.heex (100%) diff --git a/lib/pinchflat_web/controllers/media/media_item_controller.ex b/lib/pinchflat_web/controllers/media_items/media_item_controller.ex similarity index 93% rename from lib/pinchflat_web/controllers/media/media_item_controller.ex rename to lib/pinchflat_web/controllers/media_items/media_item_controller.ex index 398bd32..4248cac 100644 --- a/lib/pinchflat_web/controllers/media/media_item_controller.ex +++ b/lib/pinchflat_web/controllers/media_items/media_item_controller.ex @@ -1,4 +1,4 @@ -defmodule PinchflatWeb.Media.MediaItemController do +defmodule PinchflatWeb.MediaItems.MediaItemController do use PinchflatWeb, :controller alias Pinchflat.Media diff --git a/lib/pinchflat_web/controllers/media/media_item_html.ex b/lib/pinchflat_web/controllers/media_items/media_item_html.ex similarity index 57% rename from lib/pinchflat_web/controllers/media/media_item_html.ex rename to lib/pinchflat_web/controllers/media_items/media_item_html.ex index d0c0667..ffae16a 100644 --- a/lib/pinchflat_web/controllers/media/media_item_html.ex +++ b/lib/pinchflat_web/controllers/media_items/media_item_html.ex @@ -1,4 +1,4 @@ -defmodule PinchflatWeb.Media.MediaItemHTML do +defmodule PinchflatWeb.MediaItems.MediaItemHTML do use PinchflatWeb, :html embed_templates "media_item_html/*" diff --git a/lib/pinchflat_web/controllers/media/media_item_html/show.html.heex b/lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex similarity index 100% rename from lib/pinchflat_web/controllers/media/media_item_html/show.html.heex rename to lib/pinchflat_web/controllers/media_items/media_item_html/show.html.heex diff --git a/lib/pinchflat_web/router.ex b/lib/pinchflat_web/router.ex index a4957a1..187a2d0 100644 --- a/lib/pinchflat_web/router.ex +++ b/lib/pinchflat_web/router.ex @@ -23,7 +23,7 @@ defmodule PinchflatWeb.Router do resources "/search", Searches.SearchController, only: [:show], singleton: true resources "/sources", Sources.SourceController do - resources "/media", Media.MediaItemController, only: [:show, :delete] + resources "/media", MediaItems.MediaItemController, only: [:show, :delete] end end