Optimize assets

This commit is contained in:
Thomas Miceli
2023-03-23 16:00:48 +01:00
parent 0e0e92b88f
commit 6c981570a1
14 changed files with 6547 additions and 791 deletions

View File

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