loopback3-xtotalcount
Add X-Total-Count header to all search requests for Loopback 3.0
Last updated 3 years ago by kimkha .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install loopback3-xtotalcount 
SYNC missed versions from official npm registry.

loopback3-xTotalCount

Add X-Total-Count header to all search requests for Loopback 3.0. It should be use on client that use json-server, such as admin-on-rest

Install

  1. Add "loopback3-xtotalcount": "latest" to your package.json file.
  2. Run npm install OR run npm install loopback3-xtotalcount
  3. Set the module in your server.js (loopback server endpoint)
require('loopback3-xtotalcount')(app);

We recommend to use yarn instead of npm:

  1. yarn add loopback3-xtotalcount
  2. Set the module in your server.js
require('loopback3-xtotalcount')(app);

Thanks

License

This module is licensed under the MIT Licence.

Current Tags

  • 0.1.2                                ...           latest (3 years ago)

4 Versions

  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |