Platform code: who may sign in and how is policy. The HMR layer mounts a copy of these routes below its seam for a platform older than this move, which declines the prefix.
API
@Component({
contributes: {
"HttpModule.routes": [{ id: "AuthRoutes.routes", prefix: "/api/auth", auth: "none", order: 5 }],
},
})
export class AuthRoutes {
@Use() private readonly auth!: Auth;
@Use() private readonly config!: Config;
@Use() private readonly desktop!: Desktop;
@Bind("AuthRoutes.routes") routes!: Hono<AppEnv>;
setup();
}Dependencies & Wiring
Extracted from class decoratorsContributes
{
"HttpModule.routes": [
{
"id": "AuthRoutes.routes",
"prefix": "/api/auth",
"auth": "none",
"order": 5
}
]
}Target slots: HttpModule.routes · View HTTP endpoints (4) →
Methods (1)
setup
setup()