flatiron-restful-express

0.1.0 • Public • Published

flatiron-restful-express

The purpose of this flatiron plugin is to integrate restful with express embedded in a flatiron application.

Install

npm install flatiron-restful-express

Usage

The plugin installs a tiny middleware which acts like the static provided by express. It serves all resources provided in app.resources and goes on to the next middleware if a resource cannot be routed.

var flatiron = require('flatiron'),
    restfulExpress = require('restful-express
    app = flatiron.app;
app.use(flatiron.plugins.resourceful);
app.resources.User = app.define('user');
 
/* Server user as restful resource. */
 
app.use(restfulExpress);
...

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i flatiron-restful-express

Weekly Downloads

2

Version

0.1.0

License

BSD

Last publish

Collaborators

  • domachine