Added auth middleware.

This commit is contained in:
mikestefanello 2021-12-12 17:04:11 -05:00
parent 25e5119dd5
commit 9986ca627d
6 changed files with 75 additions and 13 deletions

View file

@ -17,7 +17,7 @@
{{link (call .Reverse "about") "About" .Path "navbar-item"}}
{{link (call .Reverse "contact") "Contact" .Path "navbar-item"}}
{{- if .IsAuth}}
{{link (call .Reverse "logout") "Logout" .Path "navbar-item"}}
{{- else}}
{{link (call .Reverse "login") "Login" .Path "navbar-item"}}
{{- end}}