summaryrefslogtreecommitdiffstats
path: root/api4/params.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-13 10:14:16 -0400
committerGitHub <noreply@github.com>2017-03-13 10:14:16 -0400
commit3ebfb369530e28ca3246c5cd2833e666edce9c90 (patch)
treea91ef74768301db727ca062354af9cac2b444001 /api4/params.go
parenta284cd8c1817bb5419cb9eae118c85cd7e99c039 (diff)
downloadchat-3ebfb369530e28ca3246c5cd2833e666edce9c90.tar.gz
chat-3ebfb369530e28ca3246c5cd2833e666edce9c90.tar.bz2
chat-3ebfb369530e28ca3246c5cd2833e666edce9c90.zip
Implement compliance endpoints for APIv4 (#5683)
* Implement compliance endpoints for APIv4 * Add paging to get reports endpoint
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 b1688a859..15f632195 100644
--- a/api4/params.go
+++ b/api4/params.go
@@ -24,6 +24,7 @@ type ApiParams struct {
FileId string
CommandId string
HookId string
+ ReportId string
EmojiId string
Email string
Username string
@@ -68,6 +69,10 @@ func ApiParamsFromRequest(r *http.Request) *ApiParams {
params.HookId = val
}
+ if val, ok := props["report_id"]; ok {
+ params.ReportId = val
+ }
+
if val, ok := props["emoji_id"]; ok {
params.EmojiId = val
}