summaryrefslogtreecommitdiff
path: root/lib/aggiedit_web/router.ex
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-04-06 14:41:19 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-04-06 14:41:19 -0600
commit61c2c9370a0e0139bdb9cab1de64723d60b2682c (patch)
tree5271f40facc03f4d727b268c1e3ab69f865b17dd /lib/aggiedit_web/router.ex
parent5ad6bbfce753e048a4f866ad6324f4b4d6f16618 (diff)
downloadaggiedit-61c2c9370a0e0139bdb9cab1de64723d60b2682c.tar.gz
aggiedit-61c2c9370a0e0139bdb9cab1de64723d60b2682c.zip
Fix authentication on posts page
Diffstat (limited to 'lib/aggiedit_web/router.ex')
-rw-r--r--lib/aggiedit_web/router.ex3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/aggiedit_web/router.ex b/lib/aggiedit_web/router.ex
index dec730a..99aee90 100644
--- a/lib/aggiedit_web/router.ex
+++ b/lib/aggiedit_web/router.ex
@@ -21,7 +21,10 @@ defmodule AggieditWeb.Router do
pipe_through :browser
get "/", PageController, :index
+ end
+ scope "/", AggieditWeb do
+ pipe_through [:browser, :require_authenticated_user]
live "/posts", PostLive.Index, :index
live "/posts/new", PostLive.Index, :new
live "/posts/:id/edit", PostLive.Index, :edit