diff --git a/example/todos/app.js b/example/todos/app.js index 45e92f3e..f5411dc5 100644 --- a/example/todos/app.js +++ b/example/todos/app.js @@ -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); \ No newline at end of file diff --git a/lib/asteroid.js b/lib/asteroid.js index 48968d13..daeb052f 100644 --- a/lib/asteroid.js +++ b/lib/asteroid.js @@ -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; }