exports.run = function() {
Express.server.run()
}
/**
* Configure _environment_ with _fn_.
*
* Global configuration, disregards which
* environment is active:
*
* configure(function(){
* // ...
* })
*
* Environment specific configuration:
*
* configure('development', function(){
* // ...
* })
*
* Running configurations:
*
* configure('development')
*
* @param {string, function} environment
* @param {function} fn
* @api public
*/
exports.configure = function(environment, fn) {
if (environment instanceof Function)
fn = environment, environment = 'all'
if (fn instanceof Function)
Express.config[i][0] == 'all')
Express.config[i][1].call(Express)
}
// --- Routing API
exports.get = exports.view = route('get')
exports.post = exports.create = route('post')
exports.del = exports.destroy = route('delete')
exports.put = exports.update = route('put')
No newline at end of file
No newline at end of file