diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-06 14:41:19 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-06 14:41:19 -0600 |
commit | 61c2c9370a0e0139bdb9cab1de64723d60b2682c (patch) | |
tree | 5271f40facc03f4d727b268c1e3ab69f865b17dd /lib/aggiedit_web/router.ex | |
parent | 5ad6bbfce753e048a4f866ad6324f4b4d6f16618 (diff) | |
download | aggiedit-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.ex | 3 |
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 |