Skip to content
Browse files

Moved layers directory to lib directory to prevent npm install confusion

  • Loading branch information...
1 parent 6d5724b commit 3667bd9bc0ea77ede7ec672bf8146846341c7f4d @dave-elkan committed
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);
View
0 layers/controllers/AuthorController.js → lib/layers/controllers/AuthorController.js
File renamed without changes.
View
0 layers/controllers/BookController.js → lib/layers/controllers/BookController.js
File renamed without changes.
View
0 layers/controllers/HomeController.js → lib/layers/controllers/HomeController.js
File renamed without changes.
View
0 layers/dao/Dao.js → lib/layers/dao/Dao.js
File renamed without changes.
View
2 layers/services/AuthorService.js → lib/layers/services/AuthorService.js
@@ -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) {
View
0 layers/services/BaseService.js → lib/layers/services/BaseService.js
File renamed without changes.
View
2 layers/services/BookService.js → lib/layers/services/BookService.js
@@ -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) {
View
0 layers/services/HomeService.js → lib/layers/services/HomeService.js
File renamed without changes.
View
0 layers/views/BaseView.js → lib/layers/views/BaseView.js
File renamed without changes.
View
0 layers/views/ErrorView.js → lib/layers/views/ErrorView.js
File renamed without changes.
View
0 layers/views/HomeView.js → lib/layers/views/HomeView.js
File renamed without changes.
View
0 layers/views/IndexView.js → lib/layers/views/IndexView.js
File renamed without changes.
View
0 layers/views/JsonView.js → lib/layers/views/JsonView.js
File renamed without changes.
View
0 layers/views/author/AuthorIndexView.js → lib/layers/views/author/AuthorIndexView.js
File renamed without changes.
View
0 layers/views/author/AuthorView.js → lib/layers/views/author/AuthorView.js
File renamed without changes.
View
0 layers/views/book/BookIndexView.js → lib/layers/views/book/BookIndexView.js
File renamed without changes.
View
0 layers/views/book/BookView.js → lib/layers/views/book/BookView.js
File renamed without changes.
View
0 layers/wiring.js → lib/layers/wiring.js
File renamed without changes.
View
2 lib/middleware/NotFoundHandler.js
@@ -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.
Something went wrong with that request. Please try again.