formatting and add for/you routes
This commit is contained in:
parent
f46981e5a4
commit
050248e82b
|
@ -9,31 +9,35 @@ defmodule Entendu.Application do
|
||||||
topologies = [
|
topologies = [
|
||||||
k8s_entendu: [
|
k8s_entendu: [
|
||||||
strategy: Elixir.Cluster.Strategy.Kubernetes.DNS,
|
strategy: Elixir.Cluster.Strategy.Kubernetes.DNS,
|
||||||
config: [
|
config: [
|
||||||
service: "entendu-nodes",
|
service: "entendu-nodes",
|
||||||
application_name: "entendu"
|
application_name: "entendu"
|
||||||
]
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
]
|
||||||
|
|
||||||
children = case Application.get_env(:frayt_elixir, :enable_k8s) do
|
children =
|
||||||
true -> [
|
case Application.get_env(:frayt_elixir, :enable_k8s) do
|
||||||
{Cluster.Supervisor, [topologies, [name: Entendu.ClusterSupervisor]]}
|
true ->
|
||||||
]
|
[
|
||||||
_ -> []
|
{Cluster.Supervisor, [topologies, [name: Entendu.ClusterSupervisor]]}
|
||||||
end
|
]
|
||||||
|> Kernel.++([
|
|
||||||
# Start the Ecto repository
|
_ ->
|
||||||
Entendu.Repo,
|
[]
|
||||||
# Start the Telemetry supervisor
|
end
|
||||||
EntenduWeb.Telemetry,
|
|> Kernel.++([
|
||||||
# Start the PubSub system
|
# Start the Ecto repository
|
||||||
{Phoenix.PubSub, name: Entendu.PubSub},
|
Entendu.Repo,
|
||||||
# Start the Endpoint (http/https)
|
# Start the Telemetry supervisor
|
||||||
EntenduWeb.Endpoint
|
EntenduWeb.Telemetry,
|
||||||
# Start a worker by calling: Entendu.Worker.start_link(arg)
|
# Start the PubSub system
|
||||||
# {Entendu.Worker, arg}
|
{Phoenix.PubSub, name: Entendu.PubSub},
|
||||||
])
|
# Start the Endpoint (http/https)
|
||||||
|
EntenduWeb.Endpoint
|
||||||
|
# Start a worker by calling: Entendu.Worker.start_link(arg)
|
||||||
|
# {Entendu.Worker, arg}
|
||||||
|
])
|
||||||
|
|
||||||
# See https://hexdocs.pm/elixir/Supervisor.html
|
# See https://hexdocs.pm/elixir/Supervisor.html
|
||||||
# for other strategies and supported options
|
# for other strategies and supported options
|
||||||
|
|
|
@ -6,6 +6,14 @@ defmodule EntenduWeb.LinkController do
|
||||||
use EntenduWeb, :controller
|
use EntenduWeb, :controller
|
||||||
|
|
||||||
def just(conn, _params) do
|
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
|
||||||
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