2.2.1 • Published 5 years ago

tingo-rest v2.2.1

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

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}`);

});
2.2.1

5 years ago

2.2.0

5 years ago

2.1.5

5 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.0.0

7 years ago

1.0.2

9 years ago

1.0.1

9 years ago