The platform's own copy is the one that serves. The runtime no longer mounts these
routes itself — it publishes the shell's port as platform.shellFrames, and a platform
too old to take the /api/command prefix simply has no host-command route at all.
API
@Component({
contributes: {
"HttpModule.routes": [
{
id: "CommandRoutes.routes",
prefix: "/api/command",
auth: "user",
order: 10,
},
],
},
})
export class CommandRoutes {
@Use() private readonly desktop!: Desktop;
@Bind("CommandRoutes.routes") routes!: Hono<AppEnv>;
setup();
}Dependencies & Wiring
Extracted from class decorators@Bindbinds (1)
routes → CommandRoutes.routes: Hono<AppEnv>Contributes
{
"HttpModule.routes": [
{
"id": "CommandRoutes.routes",
"prefix": "/api/command",
"auth": "user",
"order": 10
}
]
}Target slots: HttpModule.routes · View HTTP endpoints (2) →
Methods (1)
setup
setup()