Skip to content

Commit

Permalink
call a new express-mvc-platform package
Browse files Browse the repository at this point in the history
  • Loading branch information
basemkhirat committed Nov 11, 2017
1 parent e04b9d3 commit e29e89d
Show file tree
Hide file tree
Showing 10 changed files with 180 additions and 552 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require("./libs/helpers");
require("express-mvc-platform/lib/helpers");

/* Configurations */

Expand Down
6 changes: 3 additions & 3 deletions app/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ var path = require("path");

/* Building mongodb connection object */

require(path.join(__basepath, "libs/mongoose"));
require("express-mvc-platform/lib/mongoose");

/* Enable router named routes */

require(path.join(__basepath, "libs/router"))();
require("express-mvc-platform/lib/router")();

/* Serving public static files */

Expand All @@ -19,7 +19,7 @@ app.use(require('cors')(_config("cors")));

/* Loading the i18n localization */

app.use(require(path.join(__basepath, "libs/i18n")));
app.use(require("express-mvc-platform/lib/i18n"));

app.use(require("morgan")("dev"))

Expand Down
164 changes: 0 additions & 164 deletions libs/helpers.js

This file was deleted.

12 changes: 0 additions & 12 deletions libs/i18n.js

This file was deleted.

124 changes: 0 additions & 124 deletions libs/merge.js

This file was deleted.

22 changes: 0 additions & 22 deletions libs/mongoose.js

This file was deleted.

Loading

0 comments on commit e29e89d

Please sign in to comment.