Added auth middleware.
This commit is contained in:
parent
25e5119dd5
commit
9986ca627d
6 changed files with 75 additions and 13 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue