From 2fb5ebbfddd6f7df2f5416236d031247b6bc9405 Mon Sep 17 00:00:00 2001 From: Pascal Schmid Date: Sun, 20 Oct 2024 22:29:44 +0200 Subject: [PATCH] Delete unused route --- .../controllers/page_controller.ex | 9 - lib/mihainator_web/controllers/page_html.ex | 10 - .../controllers/page_html/home.html.heex | 222 ------------------ lib/mihainator_web/router.ex | 4 +- 4 files changed, 1 insertion(+), 244 deletions(-) delete mode 100644 lib/mihainator_web/controllers/page_controller.ex delete mode 100644 lib/mihainator_web/controllers/page_html.ex delete mode 100644 lib/mihainator_web/controllers/page_html/home.html.heex diff --git a/lib/mihainator_web/controllers/page_controller.ex b/lib/mihainator_web/controllers/page_controller.ex deleted file mode 100644 index 03e5528..0000000 --- a/lib/mihainator_web/controllers/page_controller.ex +++ /dev/null @@ -1,9 +0,0 @@ -defmodule MihainatorWeb.PageController do - use MihainatorWeb, :controller - - def home(conn, _params) do - # The home page is often custom made, - # so skip the default app layout. - render(conn, :home, layout: false) - end -end diff --git a/lib/mihainator_web/controllers/page_html.ex b/lib/mihainator_web/controllers/page_html.ex deleted file mode 100644 index 4802688..0000000 --- a/lib/mihainator_web/controllers/page_html.ex +++ /dev/null @@ -1,10 +0,0 @@ -defmodule MihainatorWeb.PageHTML do - @moduledoc """ - This module contains pages rendered by PageController. - - See the `page_html` directory for all templates available. - """ - use MihainatorWeb, :html - - embed_templates "page_html/*" -end diff --git a/lib/mihainator_web/controllers/page_html/home.html.heex b/lib/mihainator_web/controllers/page_html/home.html.heex deleted file mode 100644 index dc1820b..0000000 --- a/lib/mihainator_web/controllers/page_html/home.html.heex +++ /dev/null @@ -1,222 +0,0 @@ -<.flash_group flash={@flash} /> - -
-
- -

- Phoenix Framework - - v<%= Application.spec(:phoenix, :vsn) %> - -

-

- Peace of mind from prototype to production. -

-

- Build rich, interactive web applications quickly, with less code and fewer moving parts. Join our growing community of developers using Phoenix to craft APIs, HTML5 apps and more, for fun or at scale. -

- -
-
diff --git a/lib/mihainator_web/router.ex b/lib/mihainator_web/router.ex index 15a7368..bc85580 100644 --- a/lib/mihainator_web/router.ex +++ b/lib/mihainator_web/router.ex @@ -17,9 +17,7 @@ defmodule MihainatorWeb.Router do scope "/", MihainatorWeb do pipe_through :browser - get "/", PageController, :home - - live "/upload", UploadLive + live "/", UploadLive end # Other scopes may use custom stacks.