tingo-rest

2.2.1 • Public • Published

Tingo Rest

Minimal Express Middleware exposing a JSON API

Usage:

npm install tingo-rest

And create a index.js

const app = require('express')();
const restAPI = require('tingo-rest');

app.use('/api',restAPI('data'));

const server = app.listen(3000, function () {

  const host = server.address().address;
  const port = server.address().port;

  console.log(`API Server listening at http://${host}:${port}`);

});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.2.1
    1
    • latest

Version History

Package Sidebar

Install

npm i tingo-rest

Weekly Downloads

1

Version

2.2.1

License

ISC

Unpacked Size

11.8 kB

Total Files

9

Last publish

Collaborators

  • micha-alt