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.bodyParser());
app.use(asteroid.rest());
app.use(asteroid.routes());
app.listen(3000);

View File

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