upload files into repos

This commit is contained in:
Nikiroy78 2022-10-05 09:48:19 +03:00
parent 4f9a1b8fa2
commit 26f3a75b2d
2 changed files with 26 additions and 1 deletions

View File

@ -12,6 +12,10 @@ class Main {
method (methodObj) { method (methodObj) {
this.methods[methodObj.path] = methodObj; this.methods[methodObj.path] = methodObj;
} }
call (method, params) {
return this.methods[method.path].execute(params);
}
router (returnMiddlewareFunction = true, middlewareFunction = (req, res, next) => next()) { router (returnMiddlewareFunction = true, middlewareFunction = (req, res, next) => next()) {
let router = express.Router(); let router = express.Router();

View File

@ -1 +1,22 @@
// # class Method {
constructor (path, params) {
this.path = path;
this.paramsCompiles = params;
}
compileParams (
headers,
json,
params,
query,
body,
files,
) {
}
execute () {}
}
module.exports = Method;