Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Integrates restful with express embedded in flatiron.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
Makefile
README.md
index.js
package.json

README.md

flatiron-restful-express

Support dropped since flatiron seems to be dead

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('flatiron-restful-express'),
    app = flatiron.app;
app.use(flatiron.plugins.resourceful);
app.resources.User = app.define('user');

/* Serve user as restful resource. */

app.use(restfulExpress);
...
Something went wrong with that request. Please try again.