Admin actions behind admin path.

This commit is contained in:
codevictory
2021-04-20 23:09:00 +03:00
parent cac837be20
commit b06bae000f
14 changed files with 32 additions and 21 deletions

View File

@@ -17,9 +17,17 @@ defmodule RunosaariWeb.Router do
pipe_through :browser
get "/", PageController, :index
resources "/performers", PerformerController
resources "/performances", PerformanceController
resources "/locations", LocationController
resources "/performers", PerformerController, only: [:index, :show]
resources "/performances", PerformanceController, only: [:index, :show]
resources "/locations", LocationController, only: [:index, :show]
end
scope "/admin", RunosaariWeb, as: :admin do
pipe_through :browser
resources "/performers", PerformerController, except: [:index, :show]
resources "/performances", PerformanceController, except: [:index, :show]
resources "/locations", LocationController, except: [:index, :show]
end
# Other scopes may use custom stacks.