some routing related stuff

master
Rachel Fae Fox (foxiepaws) 2019-08-06 19:48:14 -04:00
parent dc54b69c56
commit 59799908f8
1 changed files with 9 additions and 1 deletions

View File

@ -15,10 +15,18 @@ defmodule CharbaseWeb.Router do
scope "/", CharbaseWeb do
pipe_through :browser
get "/", PageController, :index
resources "/users", UserController
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.
# scope "/api", CharbaseWeb do
# pipe_through :api