summaryrefslogtreecommitdiffstats
path: root/api4/params.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/params.go')
-rw-r--r--api4/params.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/api4/params.go b/api4/params.go
index 8b1d0febe..1f0fe8e63 100644
--- a/api4/params.go
+++ b/api4/params.go
@@ -24,6 +24,7 @@ type ApiParams struct {
ChannelId string
PostId string
FileId string
+ PluginId string
CommandId string
HookId string
ReportId string
@@ -78,6 +79,10 @@ func ApiParamsFromRequest(r *http.Request) *ApiParams {
params.FileId = val
}
+ if val, ok := props["plugin_id"]; ok {
+ params.PluginId = val
+ }
+
if val, ok := props["command_id"]; ok {
params.CommandId = val
}