Skip to content

BenoitClaveau/qwebs-aws-api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qwebs-aws-api-gateway

Qwebs routing for AWS API Gateway

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

About

Qwebs routing for AWS API Gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published