Skip to content

Instantly share code, notes, and snippets.

@tatthien tatthien/main.go

Created Dec 6, 2018
Embed
What would you like to do?
func handler(request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
body, _ := json.Marshal(map[string]interface{}{
"msg": "Hello from 12bit.vn",
})
return events.APIGatewayProxyResponse{
Headers: map[string]string{
"content-type": "application/json",
},
StatusCode: 200,
Body: string(body),
}, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.