IdentityModule · packages/server/src/http/routes/auth.ts:105

AuthRoutes

component

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 decorators
@Userequires (3)
auth: Auth · config: Config · desktop: Desktop
@Bindbinds (1)
routes → AuthRoutes.routes: Hono<AppEnv>

Contributes

{
  "HttpModule.routes": [
    {
      "id": "AuthRoutes.routes",
      "prefix": "/api/auth",
      "auth": "none",
      "order": 5
    }
  ]
}

Target slots: HttpModule.routes · View HTTP endpoints (4) →

Methods (1)

setup

setup()