changes
This commit is contained in:
parent
6a258db47f
commit
beaf92f7c4
22 changed files with 773 additions and 238 deletions
|
|
@ -4,6 +4,7 @@ defmodule EzcontainerRailwayWeb.Router do
|
|||
pipeline :browser do
|
||||
plug :accepts, ["html"]
|
||||
plug :fetch_session
|
||||
#plug EzcontainerRailwayWeb.AnonSession
|
||||
plug :fetch_live_flash
|
||||
plug :put_root_layout, html: {EzcontainerRailwayWeb.Layouts, :root}
|
||||
plug :protect_from_forgery
|
||||
|
|
@ -18,6 +19,9 @@ defmodule EzcontainerRailwayWeb.Router do
|
|||
pipe_through :browser
|
||||
|
||||
get "/", PageController, :home
|
||||
post "/token", SessionController, :token
|
||||
|
||||
resources("/containers", ContainerController, only: [:index, :create, :show])
|
||||
end
|
||||
|
||||
# Other scopes may use custom stacks.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue