20 lines
401 B
Elixir
20 lines
401 B
Elixir
|
|
defmodule EzcontainerRailwayWeb.ContainerController do
|
||
|
|
alias Phoenix.Component
|
||
|
|
use EzcontainerRailwayWeb, :controller
|
||
|
|
|
||
|
|
def index(conn, params) do
|
||
|
|
form = Component.to_form(%{"container_name" => "", "container_tag" => ""})
|
||
|
|
|
||
|
|
conn
|
||
|
|
|> assign(:form, form)
|
||
|
|
|> render(:make_container, layout: false)
|
||
|
|
end
|
||
|
|
|
||
|
|
def create(conn, params) do
|
||
|
|
|
||
|
|
end
|
||
|
|
|
||
|
|
def show(conn, params) do
|
||
|
|
end
|
||
|
|
end
|