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

});

Readme

Keywords

Package Sidebar

Install

npm i tingo-rest

Weekly Downloads

8

Version

2.2.1

License

ISC

Unpacked Size

11.8 kB

Total Files

9

Last publish

Collaborators

  • micha-alt