Fix missing proto variable
This commit is contained in:
parent
c9ae880822
commit
7806495471
|
@ -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);
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue