PlatformModule · packages/server/src/http/routes/history-lines.ts:24

HistoryLinesRoutes

component

No JSDoc comment in source yet.

API

@Component({
  contributes: {
    "HttpModule.routes": [
      {
        id: "HistoryLinesRoutes.routes",
        // After the Session forward (268), which takes a machine's Sessions; beside the Session
        // routes (session-api.sessions, 270), whose paths these are not.
        prefix: "/api/sessions",
        auth: "user",
        order: 272,
      },
    ],
  },
})
export class HistoryLinesRoutes {
  @Use() private readonly traces!: Traces;
  @Use() private readonly sessionsRepo!: SessionIndex;
  @Use() private readonly access!: Access;
  @Use() private readonly manager!: Sessions;
  @Use() private readonly channels!: Channels;
  @Use() private readonly log!: Log;
  @Bind("HistoryLinesRoutes.routes") routes!: Hono<AppEnv>;
  setup();
}

Dependencies & Wiring

Extracted from class decorators
@Userequires (6)
traces: Traces · sessionsRepo: SessionIndex · access: Access · manager: Sessions · channels: Channels · log: Log
@Bindbinds (1)
routes → HistoryLinesRoutes.routes: Hono<AppEnv>

Contributes

{
  "HttpModule.routes": [
    {
      "id": "HistoryLinesRoutes.routes",
      "prefix": "/api/sessions",
      "auth": "user",
      "order": 272
    }
  ]
}

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

Methods (1)

setup

setup()