formatting and add for/you routes
This commit is contained in:
parent
f46981e5a4
commit
050248e82b
|
@ -16,11 +16,15 @@ defmodule Entendu.Application do
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
children = case Application.get_env(:frayt_elixir, :enable_k8s) do
|
children =
|
||||||
true -> [
|
case Application.get_env(:frayt_elixir, :enable_k8s) do
|
||||||
|
true ->
|
||||||
|
[
|
||||||
{Cluster.Supervisor, [topologies, [name: Entendu.ClusterSupervisor]]}
|
{Cluster.Supervisor, [topologies, [name: Entendu.ClusterSupervisor]]}
|
||||||
]
|
]
|
||||||
_ -> []
|
|
||||||
|
_ ->
|
||||||
|
[]
|
||||||
end
|
end
|
||||||
|> Kernel.++([
|
|> Kernel.++([
|
||||||
# Start the Ecto repository
|
# Start the Ecto repository
|
||||||
|
|
|
@ -8,4 +8,12 @@ defmodule EntenduWeb.LinkController do
|
||||||
def just(conn, _params) do
|
def just(conn, _params) do
|
||||||
render(conn, "just.html")
|
render(conn, "just.html")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def for(conn, _params) do
|
||||||
|
render(conn, "for.html")
|
||||||
|
end
|
||||||
|
|
||||||
|
def you(conn, _params) do
|
||||||
|
render(conn, "you.html")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -19,6 +19,8 @@ defmodule EntenduWeb.Router do
|
||||||
|
|
||||||
get "/", PageController, :index
|
get "/", PageController, :index
|
||||||
get "/just", LinkController, :just
|
get "/just", LinkController, :just
|
||||||
|
get "/just/for", LinkController, :for
|
||||||
|
get "/just/for/you", LinkController, :you
|
||||||
end
|
end
|
||||||
|
|
||||||
scope "/auth", EntenduWeb do
|
scope "/auth", EntenduWeb do
|
||||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -10,6 +10,5 @@ defmodule Entendu.Repo.Migrations.CreateLinks do
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue