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.configure());
|
||||||
app.use(asteroid.bodyParser());
|
app.use(asteroid.bodyParser());
|
||||||
app.use(asteroid.rest());
|
app.use(asteroid.routes());
|
||||||
|
|
||||||
app.listen(3000);
|
app.listen(3000);
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue