This commit is contained in:
biglyderv 2024-09-08 05:04:57 -04:00
parent d0cc234857
commit d8f720856c
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954
11 changed files with 321 additions and 24 deletions

View file

@ -4,8 +4,9 @@ function Route(deps, exec) {
}
Route.prototype.run = async function (req, res, input) {
input = input || {};
for (let dep of this.deps) {
input = await dep.run(req, res, input)
input = {...input, ...(await dep.run(req, res, input))};
};
return await this.exec(req,res,input);
}