Okay that's about everything

This commit is contained in:
benbot 2023-10-25 23:19:22 -04:00
parent 023ad47ae4
commit d094ff036f
19 changed files with 236 additions and 79 deletions

View file

@ -19,8 +19,13 @@ defmodule EzcontainerRailwayWeb.Router do
plug EzcontainerRailwayWeb.RailwayCheck
end
pipeline :ensure_no_token do
plug EzcontainerRailwayWeb.NoRailwayCheck
end
scope "/", EzcontainerRailwayWeb do
pipe_through :browser
pipe_through :ensure_no_token
get "/", PageController, :home
post "/token", SessionController, :token
@ -30,8 +35,8 @@ defmodule EzcontainerRailwayWeb.Router do
pipe_through :browser
pipe_through :ensure_token
live "/containers", ContainerCreateLive
resources("/containers", ContainerController, only: [:create, :show])
live "/containers/create", ContainerCreateLive
resources("/containers", ContainerController, only: [:index, :create, :show])
end
# Other scopes may use custom stacks.