ApiModule · packages/server/src/hmr/routes.ts:117

HmrRoutes

component

No JSDoc comment in source yet.

API

@Component({
  contributes: {
    "HttpModule.routes": [
      // Manifest data is literal (gen-ifaces reads it off the source): the same prefix packages/hmr exports as HMR_ROUTE_PREFIX.
      // `auth: "none"` only in the manifest: the group gates itself, network first, then the
      // platform's own auth middleware — the order the gate's tests pin.
      { id: "HmrRoutes.routes", prefix: "/api/hmr", auth: "none", order: 5 },
    ],
  },
})
export class HmrRoutes {
  @Use() private readonly control!: HmrControl;
  @Use() private readonly auth!: Auth;
  @Use() private readonly config!: Config;
  @Use() private readonly channels!: Channels;
  @Use() private readonly hmr!: Hmr;
  @Bind("HmrRoutes.routes") routes!: Hono<AppEnv>;
  setup();
}

Dependencies & Wiring

Extracted from class decorators
@Userequires (5)
control: HmrControl · auth: Auth · config: Config · channels: Channels · hmr: Hmr
@Bindbinds (1)
routes → HmrRoutes.routes: Hono<AppEnv>

Contributes

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

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

Methods (1)

setup

setup()