Okay that's about everything
This commit is contained in:
parent
023ad47ae4
commit
d094ff036f
19 changed files with 236 additions and 79 deletions
|
|
@ -1,13 +1,14 @@
|
|||
defmodule EzcontainerRailwayWeb.ContainerController do
|
||||
alias EzcontainerRailway.Railway
|
||||
alias Phoenix.Component
|
||||
use EzcontainerRailwayWeb, :controller
|
||||
|
||||
def index(conn, params) do
|
||||
form = Component.to_form(%{"container_name" => "", "container_tag" => ""})
|
||||
{:ok, services} = Railway.get_services(conn |> get_session(:railway_token))
|
||||
|
||||
conn
|
||||
|> assign(:form, form)
|
||||
|> render(:make_container, layout: false)
|
||||
|> assign(:services, services)
|
||||
|> render(:containers)
|
||||
end
|
||||
|
||||
def create(conn, params) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue