summaryrefslogtreecommitdiff
path: root/lib/aggiedit_web/router.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/aggiedit_web/router.ex')
-rw-r--r--lib/aggiedit_web/router.ex7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/aggiedit_web/router.ex b/lib/aggiedit_web/router.ex
index e400391..dec730a 100644
--- a/lib/aggiedit_web/router.ex
+++ b/lib/aggiedit_web/router.ex
@@ -21,6 +21,13 @@ defmodule AggieditWeb.Router do
pipe_through :browser
get "/", PageController, :index
+
+ live "/posts", PostLive.Index, :index
+ live "/posts/new", PostLive.Index, :new
+ live "/posts/:id/edit", PostLive.Index, :edit
+
+ live "/posts/:id", PostLive.Show, :show
+ live "/posts/:id/show/edit", PostLive.Show, :edit
end
# Other scopes may use custom stacks.