jcc-express-mvc 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jcc-express-mvc",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "express mvc structure",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  const App = require("./app");
2
2
  const { authenticated, protectedApi } = require("./Auth/protectedRoute");
3
3
  const Auth = require("./Auth");
4
- const Template = require("./templating-engine");
5
-
4
+ const template = require("./templating-engine");
6
5
  const {
7
6
  bcrypt,
8
7
  getApiController,
@@ -40,5 +39,5 @@ module.exports = {
40
39
  apiAuthenticated: protectedApi,
41
40
  Auth,
42
41
  getDbCli,
43
- template: new Template(),
42
+ template: template,
44
43
  };
@@ -140,4 +140,4 @@ class Template {
140
140
  }
141
141
  }
142
142
 
143
- module.exports = Template;
143
+ module.exports = new Template();