1.2.0 • Published 4 years ago

@codeinkit/express-routes v1.2.0

Weekly downloads
6
License
ISC
Repository
-
Last release
4 years ago

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}))
})();
1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago