css
This commit is contained in:
parent
d0cc234857
commit
d8f720856c
11 changed files with 321 additions and 24 deletions
3
route.js
3
route.js
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue