diff --git a/lib/charbase_web/router.ex b/lib/charbase_web/router.ex index d5093ca..52f2c12 100644 --- a/lib/charbase_web/router.ex +++ b/lib/charbase_web/router.ex @@ -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