bug fixes, half-finished admin ui, and a more

This commit is contained in:
Zoe
2024-09-23 01:21:28 -05:00
parent 6e6bc1c45b
commit 66f8437351
35 changed files with 1039 additions and 141 deletions

View File

@@ -41,6 +41,10 @@ func AuthCheckMiddleware(next echo.HandlerFunc) echo.HandlerFunc {
return c.Redirect(http.StatusFound, "/login")
}
if strings.Contains(path, "/admin") && !authenticated {
return c.Redirect(http.StatusFound, "/login")
}
return next(c)
}
}