Permalink
Browse files

Moved layers directory to lib directory to prevent npm install confusion

  • Loading branch information...
dave-elkan committed Jun 29, 2011
1 parent 6d5724b commit 3667bd9bc0ea77ede7ec672bf8146846341c7f4d
View
10 app.js
@@ -53,14 +53,8 @@ app.configure('production', function() {
* The Layers module automatically loads the controllers, services and views from
* their respective directories
*/
-var wiring = require('./layers/wiring');
-new Layers(app, __dirname + '/layers', wiring, {
- layers: [
- "controllers",
- "services",
- "views"
- ]
-});
+var wiring = require('./lib/layers/wiring');
+new Layers(app, __dirname + '/lib/layers', wiring);
// Bootstrap Content
require("./lib/bootstrap")(app);
File renamed without changes.
@@ -1,5 +1,5 @@
var BaseService = require('./BaseService'),
- NotFound = require("../../lib/error/NotFound"),
+ NotFound = require("../../../lib/error/NotFound"),
Dao = require('../dao/Dao');
AuthorService = function(app) {
File renamed without changes.
@@ -1,5 +1,5 @@
var BaseService = require('./BaseService'),
- NotFound = require("../../lib/error/NotFound"),
+ NotFound = require("../../../lib/error/NotFound"),
Dao = require('../dao/Dao');
BookService = function(app) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
var NotFound = require("../error/NotFound"),
- errorView = require('../../layers/views/ErrorView');
+ errorView = require('../../lib/layers/views/ErrorView');
module.exports = function notFoundHandler(req, res, next) {
errorView.render(req, res, new NotFound("The requested resource could not be found."));

0 comments on commit 3667bd9

Please sign in to comment.