Skip to content

Instantly share code, notes, and snippets.

@Strernd
Last active May 14, 2019 10:46
Show Gist options
  • Save Strernd/ead6308cec5b1ef557ce45995c676ed4 to your computer and use it in GitHub Desktop.
Save Strernd/ead6308cec5b1ef557ce45995c676ed4 to your computer and use it in GitHub Desktop.
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));
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