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 999bf8e77..b48e5fc1b 100644
--- a/api4/params.go
+++ b/api4/params.go
@@ -20,6 +20,7 @@ type ApiParams struct {
UserId string
TeamId string
InviteId string
+ TokenId string
ChannelId string
PostId string
FileId string
@@ -60,6 +61,10 @@ func ApiParamsFromRequest(r *http.Request) *ApiParams {
params.InviteId = val
}
+ if val, ok := props["token_id"]; ok {
+ params.TokenId = val
+ }
+
if val, ok := props["channel_id"]; ok {
params.ChannelId = val
}