Last active
May 14, 2019 10:46
-
-
Save Strernd/ead6308cec5b1ef557ce45995c676ed4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const laconia = require("@laconia/core"); | |
const api = require("@laconia/adapter-api").apigateway({ inputType: "params" }); | |
const app = async (event, { }) => { | |
console.log(await event); | |
return event; | |
}; | |
exports.handler = laconia(api(app)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: laconia-websocket-test | |
provider: | |
name: aws | |
runtime: nodejs8.10 | |
stage: dev | |
region: eu-central-1 | |
profile: default | |
functions: | |
hello: | |
handler: handler.handler | |
events: | |
- http: GET laconia | |
- websocket: | |
route: laconia |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment