RunKit + npm: @hexlabs/http-api-ts

node v14.20.1
endpointsharetweet
var httpApiTs = require("@hexlabs/http-api-ts") const handler = httpApiTs.router([ httpApiTs.route('/hello', httpApiTs.HttpMethod.GET, async () => ({statusCode: 200, body: 'world'})) ]); // Call locally console.log(await handler({resource: '/hello', httpMethod: 'GET'}))
Created from: https://npm.runkit.com/%40hexlabs%2Fhttp-api-ts
Loading…