some routing related stuff
parent
dc54b69c56
commit
59799908f8
|
@ -15,10 +15,18 @@ defmodule CharbaseWeb.Router do
|
||||||
|
|
||||||
scope "/", CharbaseWeb do
|
scope "/", CharbaseWeb do
|
||||||
pipe_through :browser
|
pipe_through :browser
|
||||||
|
|
||||||
get "/", PageController, :index
|
get "/", PageController, :index
|
||||||
|
resources "/users", UserController
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scope "/character", CharbaseWeb do
|
||||||
|
pipe_through :browser
|
||||||
|
get "/:char", CharacterController, :show
|
||||||
|
get "/:char/edit", CharacterController, :edit
|
||||||
|
get "/new", CharacterController, :new
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
# Other scopes may use custom stacks.
|
# Other scopes may use custom stacks.
|
||||||
# scope "/api", CharbaseWeb do
|
# scope "/api", CharbaseWeb do
|
||||||
# pipe_through :api
|
# pipe_through :api
|
||||||
|
|
Loading…
Reference in New Issue