diff --git a/components/Main.js b/components/Main.js index c639c07..b25913b 100644 --- a/components/Main.js +++ b/components/Main.js @@ -12,6 +12,10 @@ class Main { method (methodObj) { this.methods[methodObj.path] = methodObj; } + + call (method, params) { + return this.methods[method.path].execute(params); + } router (returnMiddlewareFunction = true, middlewareFunction = (req, res, next) => next()) { let router = express.Router(); diff --git a/components/Method.js b/components/Method.js index 140fcad..74ef773 100644 --- a/components/Method.js +++ b/components/Method.js @@ -1 +1,22 @@ -// # \ No newline at end of file +class Method { + constructor (path, params) { + this.path = path; + this.paramsCompiles = params; + } + + compileParams ( + headers, + json, + params, + query, + body, + files, + ) { + + } + + execute () {} +} + + +module.exports = Method; \ No newline at end of file