formatting and add for/you routes
This commit is contained in:
@@ -6,6 +6,14 @@ defmodule EntenduWeb.LinkController do
|
||||
use EntenduWeb, :controller
|
||||
|
||||
def just(conn, _params) do
|
||||
render(conn, "just.html")
|
||||
render(conn, "just.html")
|
||||
end
|
||||
|
||||
def for(conn, _params) do
|
||||
render(conn, "for.html")
|
||||
end
|
||||
|
||||
def you(conn, _params) do
|
||||
render(conn, "you.html")
|
||||
end
|
||||
end
|
||||
|
@@ -19,6 +19,8 @@ defmodule EntenduWeb.Router do
|
||||
|
||||
get "/", PageController, :index
|
||||
get "/just", LinkController, :just
|
||||
get "/just/for", LinkController, :for
|
||||
get "/just/for/you", LinkController, :you
|
||||
end
|
||||
|
||||
scope "/auth", EntenduWeb do
|
||||
|
6
lib/entendu_web/templates/link/for.html.eex
Normal file
6
lib/entendu_web/templates/link/for.html.eex
Normal file
@@ -0,0 +1,6 @@
|
||||
<section class="phx-hero">
|
||||
<h2>Create a secret!</h2>
|
||||
<p>There will be a form here</p>
|
||||
<p>And a file input here</p>
|
||||
<p>Then a next button</p>
|
||||
</section>
|
6
lib/entendu_web/templates/link/you.html.eex
Normal file
6
lib/entendu_web/templates/link/you.html.eex
Normal file
@@ -0,0 +1,6 @@
|
||||
<section class="phx-hero">
|
||||
<h2>Create a secret!</h2>
|
||||
<p>There will be a form here</p>
|
||||
<p>And a file input here</p>
|
||||
<p>Then a next button</p>
|
||||
</section>
|
Reference in New Issue
Block a user