1.0.1 • Published 7 years ago
multi-resource v1.0.1
multi-resource
An express middleware to fetch multiple resources from API with one request
Installation
npm i multi-resourceUsage
const express = require('express');
const mr = require('multi-resource');
const app = express();
app.use(mr());
app.listen(3000);curl http://localhost:3000/api/resources?users=api/usersAlso, see example
Options
basePath- ('api')url- ('resources')
Limitations
- Will not work with non
application/jsonAPIs - Will not work if API returns status code different from 200