From 3ebfb369530e28ca3246c5cd2833e666edce9c90 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 13 Mar 2017 10:14:16 -0400 Subject: Implement compliance endpoints for APIv4 (#5683) * Implement compliance endpoints for APIv4 * Add paging to get reports endpoint --- api4/params.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api4/params.go') 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 } -- cgit v1.2.3-1-g7c22