Detalhes do pacote

tencent-serverless-http

serverless-plus346.1kApache-2.01.3.2

This library enables you to utilize Tencent Cloud API Gateway to respond to web and API requests using your existing Node.js application framework.

tencent-cloud, serverless, api, gateway

readme (leia-me)

Tencent Serverless Http

Build Status npm NPM downloads

This project is a fork of aws-serverless-express, and modify for tencent cloud scf.

Install

npm install tencent-serverless-http

Usage

// handler.js
'use strict';
const tencentServerlessHttp = require('tencent-serverless-http');
const app = require('./app');
const server = tencentServerlessHttp.createServer(app);

exports.handler = (event, context) => {
  tencentServerlessHttp.proxy(server, event, context);
};

License

MIT License

Copyright (c) 2020 Serverless Plus