@codeinkit/express-routes

1.2.0 • Public • Published

Flows-framework Express Based Routes

Options

  • routes - required object with map of the routes
  • isAwsRoutes - default false, if this flag is true the object that pass to the flow will mimic aws object {headers, body, pathParameters, queryStringParameters}
  • port - default 8080

Default object that pass to the flow {headers, body, params, query}

Usage

const flowsFramework = require('@codeinkit/flows-framework');
const restRoutes = require('@codeinkit/express-routes')
const routes = {
  'get route': 'flow/path'
};

(async () => {
  await flowsFramework.init(__dirname);

  await flowsFramework.addRoute(restRoutes({routes}))
})();

Readme

Keywords

none

Package Sidebar

Install

npm i @codeinkit/express-routes

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

2.59 kB

Total Files

3

Last publish

Collaborators

  • amitmtrn