diff --git a/lib/entendu/application.ex b/lib/entendu/application.ex index 0f4c3fc..26266f3 100644 --- a/lib/entendu/application.ex +++ b/lib/entendu/application.ex @@ -9,31 +9,35 @@ defmodule Entendu.Application do topologies = [ k8s_entendu: [ strategy: Elixir.Cluster.Strategy.Kubernetes.DNS, - config: [ - service: "entendu-nodes", - application_name: "entendu" - ] + config: [ + service: "entendu-nodes", + application_name: "entendu" ] ] + ] - children = case Application.get_env(:frayt_elixir, :enable_k8s) do - true -> [ - {Cluster.Supervisor, [topologies, [name: Entendu.ClusterSupervisor]]} - ] - _ -> [] - end - |> Kernel.++([ - # Start the Ecto repository - Entendu.Repo, - # Start the Telemetry supervisor - EntenduWeb.Telemetry, - # Start the PubSub system - {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} - ]) + children = + case Application.get_env(:frayt_elixir, :enable_k8s) do + true -> + [ + {Cluster.Supervisor, [topologies, [name: Entendu.ClusterSupervisor]]} + ] + + _ -> + [] + end + |> Kernel.++([ + # Start the Ecto repository + Entendu.Repo, + # Start the Telemetry supervisor + EntenduWeb.Telemetry, + # Start the PubSub system + {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 # for other strategies and supported options diff --git a/lib/entendu_web/controllers/link_controller.ex b/lib/entendu_web/controllers/link_controller.ex index 7803b49..ff8aa54 100644 --- a/lib/entendu_web/controllers/link_controller.ex +++ b/lib/entendu_web/controllers/link_controller.ex @@ -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 diff --git a/lib/entendu_web/router.ex b/lib/entendu_web/router.ex index db5f4ba..cc2d598 100644 --- a/lib/entendu_web/router.ex +++ b/lib/entendu_web/router.ex @@ -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 diff --git a/lib/entendu_web/templates/link/for.html.eex b/lib/entendu_web/templates/link/for.html.eex new file mode 100644 index 0000000..0489925 --- /dev/null +++ b/lib/entendu_web/templates/link/for.html.eex @@ -0,0 +1,6 @@ +
+

Create a secret!

+

There will be a form here

+

And a file input here

+

Then a next button

+
diff --git a/lib/entendu_web/templates/link/you.html.eex b/lib/entendu_web/templates/link/you.html.eex new file mode 100644 index 0000000..0489925 --- /dev/null +++ b/lib/entendu_web/templates/link/you.html.eex @@ -0,0 +1,6 @@ +
+

Create a secret!

+

There will be a form here

+

And a file input here

+

Then a next button

+
diff --git a/priv/repo/migrations/20210819214328_create_links.exs b/priv/repo/migrations/20210819214328_create_links.exs index eff42b5..3662532 100644 --- a/priv/repo/migrations/20210819214328_create_links.exs +++ b/priv/repo/migrations/20210819214328_create_links.exs @@ -10,6 +10,5 @@ defmodule Entendu.Repo.Migrations.CreateLinks do timestamps() end - end end