/[sudobot]/trunk/src/api/Server.ts
ViewVC logotype

Diff of /trunk/src/api/Server.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 324 by rakin, Mon Jul 29 17:29:32 2024 UTC revision 325 by rakin, Mon Jul 29 17:29:32 2024 UTC
# Line 27  export default class Server extends Serv Line 27  export default class Server extends Serv
27          await this.router.loadRoutes();          await this.router.loadRoutes();
28    
29          for (const route of this.router.routes) {          for (const route of this.router.routes) {
30              expressRouter[route.method.toLowerCase() as methods](route.path, ...route.middlewareList, route.getCallbackFunction());              expressRouter[route.method.toLowerCase() as methods](route.path, ...route.middlewareList, await route.getCallbackFunction());
31          }          }
32    
33          this.express.use(expressRouter);          this.express.use(expressRouter);

Legend:
Removed from v.324  
changed lines
  Added in v.325

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26