update: db initialization

This commit is contained in:
boojack
2022-05-01 11:06:29 +08:00
parent eae858e20b
commit 406109b091
7 changed files with 32 additions and 37 deletions

View File

@ -56,7 +56,7 @@ func removeUserSession(c echo.Context) error {
func BasicAuthMiddleware(us api.UserService, next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
// Skips auth
if common.HasPrefixes(c.Path(), "/api/auth") {
if common.HasPrefixes(c.Path(), "/api/auth", "/api/ping") {
return next(c)
}