MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / use

Method use

daemon/src/service/router.ts:31–33  ·  view source on GitHub ↗
(fn: (event: string, ctx: RouterContext, data: any, next: Function) => void)

Source from the content-addressed store, hash-verified

29 }
30
31 use(fn: (event: string, ctx: RouterContext, data: any, next: Function) => void) {
32 this.middlewares.push(fn);
33 }
34
35 getMiddlewares() {
36 return this.middlewares;

Callers 15

mountAppFunction · 0.80
apiService.tsFile · 0.80
mainFunction · 0.80
mountRoutersFunction · 0.80
routersMethod · 0.80
schedule_router.tsFile · 0.80
initKoaFunction · 0.80
navigationFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected