Add healthcheck endpoint (#170)

This commit is contained in:
Thomas Miceli
2023-12-16 01:27:00 +01:00
parent 246f12c8cb
commit 47869a77c9
4 changed files with 36 additions and 1 deletions

View File

@ -168,7 +168,7 @@ func validateReservedKeywords(fl validator.FieldLevel) bool {
name := fl.Field().String()
restrictedNames := map[string]struct{}{}
for _, restrictedName := range []string{"assets", "register", "login", "logout", "settings", "admin-panel", "all", "search", "init"} {
for _, restrictedName := range []string{"assets", "register", "login", "logout", "settings", "admin-panel", "all", "search", "init", "healthcheck"} {
restrictedNames[restrictedName] = struct{}{}
}