eventmanager: add DELETE method to HTTP notifications

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2023-08-09 18:44:17 +02:00
parent d8dd4b2131
commit 60cc07bc81
5 changed files with 8 additions and 9 deletions

View File

@@ -199,7 +199,7 @@ var (
SupporteRuleConditionProviderObjects = []string{actionObjectUser, actionObjectFolder, actionObjectGroup,
actionObjectAdmin, actionObjectAPIKey, actionObjectShare, actionObjectEventRule, actionObjectEventAction}
// SupportedHTTPActionMethods defines the supported methods for HTTP actions
SupportedHTTPActionMethods = []string{http.MethodPost, http.MethodGet, http.MethodPut}
SupportedHTTPActionMethods = []string{http.MethodPost, http.MethodGet, http.MethodPut, http.MethodDelete}
allowedSyncFsEvents = []string{"upload", "pre-upload", "pre-download", "pre-delete"}
mandatorySyncFsEvents = []string{"pre-upload", "pre-download", "pre-delete"}
)