mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui-next: inject route map
This commit is contained in:
3 files changed
+6
-1
No files matched your search
@@ -724,6 +724,7 @@ ${c.response.status} ${endTime - startTime}ms ${c.response.length}`);
|
||||
}
|
||||
this.registry[name] = HandlerClass;
|
||||
this.registrationCount[name]++;
|
||||
this.routeMap[routeName] = path as string;
|
||||
|
||||
const Checker = (args) => {
|
||||
let perm: bigint;
|
||||
@@ -776,6 +777,7 @@ ${c.response.status} ${endTime - startTime}ms ${c.response.length}`);
|
||||
this.ctx.effect(() => () => {
|
||||
this.registrationCount[name]--;
|
||||
if (!this.registrationCount[name]) delete this.registry[name];
|
||||
delete this.routeMap[routeName];
|
||||
dispose();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user