mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
eventmanager: add DELETE method to HTTP notifications
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -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"}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user