exframe-rest

3.6.2 • Public • Published

exframe Rest Module

A wrapper around express to provide restful routing for the Harmony Framework.

###Features

  • Defaults to port 8080
  • Assumes JSON for the payload
  • Sets HTTP access control headers (CORS)

###Use

const app = require('exframe-rest').create(process.env.PORT);

app.post('/test', (req, res) => {
  res.json({'result': 1})
});

###Tests

npm run test

/exframe-rest/

    Package Sidebar

    Install

    npm i exframe-rest

    Weekly Downloads

    454

    Version

    3.6.2

    License

    ISC

    Unpacked Size

    16 kB

    Total Files

    11

    Last publish

    Collaborators

    • exzeo_usa
    • exzeodevops