KP
Size: a a a
A
A
const /* тут подходящее имя функции */ = (context, method, path, router) => ({
...context.routes[method],
...router.routes[method].map(/* тут твой колбэк */)
});
use
:use(path, router) {
const methods = Object.keys(this.routes);
methods.forEach((method) => {
this.routes[method] = /* имя выделенной функции */(this, method, path, router);
});
}
S
AB
Е
Е
Y
Е
1
g
A
᠌
A
A
A