From 59799908f88ba82e1af356b620ffb056d8a62863 Mon Sep 17 00:00:00 2001 From: "Rachel Fae Fox (foxiepaws)" Date: Tue, 6 Aug 2019 19:48:14 -0400 Subject: [PATCH] some routing related stuff --- lib/charbase_web/router.ex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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