vanilla-jet 1.0.15 → 1.0.17

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.
@@ -77,8 +77,14 @@ class Server {
77
77
  // Initialize router
78
78
  obj.router = new Router(obj);
79
79
 
80
+ // -- Initialize endoints
81
+ let endpoints_built = {};
82
+ for (endpoint of endpoints) {
83
+ endpoints_built[endpoint.name] = new endpoint(obj.router);
84
+ }
85
+
80
86
  // Setting endpoints
81
- obj.functions = new Functions(endpoints);
87
+ obj.functions = new Functions(endpoints_built);
82
88
  }
83
89
 
84
90
  start() {
package/index.js CHANGED
@@ -3,11 +3,13 @@ const Request = require('./framework/request.js');
3
3
  const Response = require('./framework/response.js');
4
4
  const Router = require('./framework/router.js');
5
5
  const Server = require('./framework/server.js');
6
+ const Functions = require('./framework/functions.js');
6
7
 
7
8
  module.exports = {
8
9
  Dipper,
9
10
  Request,
10
11
  Response,
11
12
  Router,
12
- Server
13
+ Server,
14
+ Functions
13
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jet",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "VannilaJet framework",
5
5
  "main": "index.js",
6
6
  "bin": {