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.