Osprey Resources
Iterate over RAML resources and generate a middleware router.
Installation
npm install osprey-resources --save
Usage
const express = const resources = const utils = const app = // Array.<webapi-parser.EndPoint>const endPoints = utils app
The resources function accepts two arguments. The array of EndPoint
objects from webapi-parser model and a function that will generate the route for that path. Return null
if the route should not be used.
License
MIT license