A continuation of HomeBox the inventory and organization system built for the Home User
feat : Validate bark, ntfy, generic+ shortcut (#591)
Owen Valentineab9887035077
diff --git a/backend/internal/sys/validate/validate.go b/backend/internal/sys/validate/validate.goindex a8a3a272..e10a646b 100644--- a/backend/internal/sys/validate/validate.go+++ b/backend/internal/sys/validate/validate.go@@ -13,6 +13,7 @@ func init() {err := validate.RegisterValidation("shoutrrr", func(fl validator.FieldLevel) bool {prefixes := [...]string{+ "bark://","discord://","smtp://","gotify://",@@ -21,6 +22,7 @@ func init() {"join://","mattermost://","matrix://",+ "ntfy://","opsgenie://","pushbullet://","pushover://",@@ -30,6 +32,7 @@ func init() {"telegram://","zulip://","generic://",+ "generic+",}str := fl.Field().String()