update add no path and random path

This commit is contained in:
2025-10-22 17:05:20 +08:00
parent 24166f9899
commit cc74dc6803
5 changed files with 85 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ export class App<T = {}, U = AppReqRes> {
}
return new Route(path, key, opts);
}
async call(message: { path: string; key?: string; payload?: any }, ctx?: RouteContext & { [key: string]: any }) {
async call(message: { id?: string, path?: string; key?: string; payload?: any }, ctx?: RouteContext & { [key: string]: any }) {
const router = this.router;
return await router.call(message, ctx);
}