just need to add creating services, deploying them, and showing logs
This commit is contained in:
parent
a3a4af7965
commit
023ad47ae4
6 changed files with 99 additions and 29 deletions
|
|
@ -4,7 +4,7 @@ defmodule EzcontainerRailwayWeb.Router do
|
|||
pipeline :browser do
|
||||
plug :accepts, ["html"]
|
||||
plug :fetch_session
|
||||
#plug EzcontainerRailwayWeb.AnonSession
|
||||
plug EzcontainerRailwayWeb.AnonSession
|
||||
plug :fetch_live_flash
|
||||
plug :put_root_layout, html: {EzcontainerRailwayWeb.Layouts, :root}
|
||||
plug :protect_from_forgery
|
||||
|
|
@ -15,11 +15,20 @@ defmodule EzcontainerRailwayWeb.Router do
|
|||
plug :accepts, ["json"]
|
||||
end
|
||||
|
||||
pipeline :ensure_token do
|
||||
plug EzcontainerRailwayWeb.RailwayCheck
|
||||
end
|
||||
|
||||
scope "/", EzcontainerRailwayWeb do
|
||||
pipe_through :browser
|
||||
|
||||
get "/", PageController, :home
|
||||
post "/token", SessionController, :token
|
||||
end
|
||||
|
||||
scope "/", EzcontainerRailwayWeb do
|
||||
pipe_through :browser
|
||||
pipe_through :ensure_token
|
||||
|
||||
live "/containers", ContainerCreateLive
|
||||
resources("/containers", ContainerController, only: [:create, :show])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue