Fix missing proto variable

This commit is contained in:
Ritchie 2013-05-07 11:38:52 -07:00
parent c9ae880822
commit 7806495471
2 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,6 @@ var app = asteroid();
app.use(asteroid.configure()); app.use(asteroid.configure());
app.use(asteroid.bodyParser()); app.use(asteroid.bodyParser());
app.use(asteroid.rest()); app.use(asteroid.routes());
app.listen(3000); app.listen(3000);

View File

@ -5,7 +5,8 @@
var express = require('express') var express = require('express')
, fs = require('fs') , fs = require('fs')
, path = require('path') , path = require('path')
, utils = express.utils; , proto = require('./application')
, merge = require('merge');
/** /**
* Expose `createApplication()`. * Expose `createApplication()`.
@ -34,7 +35,7 @@ asteroid.mime = express.mime;
function createApplication() { function createApplication() {
var app = express(); var app = express();
utils.merge(app, proto); merge(app, proto);
return app; return app;
} }