Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benoitclaveau/qwebs-aws-api-gateway
Qwebs routing for AWS API Gateway
https://github.com/benoitclaveau/qwebs-aws-api-gateway
Last synced: 19 days ago
JSON representation
Qwebs routing for AWS API Gateway
- Host: GitHub
- URL: https://github.com/benoitclaveau/qwebs-aws-api-gateway
- Owner: BenoitClaveau
- Created: 2017-06-23T08:35:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-21T11:15:23.000Z (about 7 years ago)
- Last Synced: 2023-12-27T02:02:07.670Z (about 1 year ago)
- Language: JavaScript
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# qwebs-aws-api-gateway
Qwebs routing for AWS API Gateway
```js
const path = require("path");
const QwebsAwsApiGateway = require('qwebs-aws-api-gateway');const instance = QwebsAwsApiGateway.create({
dirname: path.resolve(__dirname, ".."),
config: {
routes: "./routes.json"
}
});module.exports.handler = (event, context, callback) => {
return instance.then(qwebs => {
return qwebs.invoke(event, context, callback);
}).catch(error => {
callback(null, { statusCode: error.statusCode || 404 })
})
};```
## Others AWS Services
* [$aws-s3](https://www.npmjs.com/package/qwebs-aws-s3)
* [$aws-ses](https://www.npmjs.com/package/qwebs-aws-ses)