fix admin controller to only serve if defined, and only from specified endpoints

This commit is contained in:
dswbx
2025-06-12 09:45:14 +02:00
parent c75f8d0937
commit 4162b9878a
3 changed files with 14 additions and 18 deletions

View File

@@ -50,7 +50,7 @@ export class AdminController extends Controller {
}
get basepath() {
return this.options.basepath ?? "/";
return this.withAdminBasePath();
}
private withBasePath(route: string = "") {