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

AuthRoutes

http-routes

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

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

Code Half (@Bind)

@Bind("AuthRoutes.routes") routes!: Hono<AppEnv>;

Endpoints (4)

POST

/api/auth/login

AuthRoutes.routes · auth.ts:31
POST

/api/auth/logout

AuthRoutes.routes · auth.ts:45
GET

/api/auth/claim

AuthRoutes.routes · auth.ts:63
ALL

/api/auth/*

AuthRoutes.routes · auth.ts:94