LivelyKernel/life_star — pull request #1 by rksm (2012-10-25 00:58:03+00:00)
Title: Adding the ability to start subservers

This works simply by placing js files into the subservers/ directory. those
modules are supposed to export a function that expects a route string (the
base route the "sub server" can be reached at) and the express app object
itself. The subserver can then register itself on new routes it wants to
respond to.

Example:

Suppose this code is placed in subservers/foo.js:

```js
module.exports = function(baseRoute, app) {
app.get(baseRoute, function(req, res) {
res.send(\'hello\');
});
}
```

Then GET requests to LIFESTAR_HOST/nodejs/foo will be responded with 'hello'.