Added more frontend and some more login logic
This commit is contained in:
@@ -47,3 +47,8 @@ func IsLoggedIn(w http.ResponseWriter, r *http.Request) (*auth.Claims, bool) {
|
||||
}
|
||||
return claims, true
|
||||
}
|
||||
func RenderFile(path string) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, path)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user