Skip to content
Snippets Groups Projects
Commit 5a132b45 authored by Jan Semmelink's avatar Jan Semmelink
Browse files

Merged main into branch

parents 26739ba2 a0afa08f
No related branches found
No related tags found
1 merge request!4Add opensearch client to write API log events
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
......@@ -260,7 +260,12 @@ func (api Api) Handler(baseCtx context.Context, apiGatewayProxyReq events.APIGat
//handler succeeded, some handler does not have a response data (typically post/put/patch/delete)
err = nil
switch apiGatewayProxyReq.HTTPMethod {
case http.MethodDelete:
res.StatusCode = http.StatusNoContent
default:
res.StatusCode = http.StatusOK
}
if len(results) > 1 {
responseStruct := results[0].Interface()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment