exframe-rest

3.6.1 • 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

Readme

Keywords

none

Package Sidebar

Install

npm i exframe-rest

Weekly Downloads

458

Version

3.6.1

License

ISC

Unpacked Size

16 kB

Total Files

11

Last publish

Collaborators

  • exzeo_usa
  • exzeodevops