ApiModule · packages/server/src/http/routes/handshake.ts:47

HandshakeRoutes

component

The route group as a module component: mounted by the platform's ApiModule beside the version routes it shares a door with (src/platform.ts), at /api/handshake.

API

@Component({
  contributes: {
    "HttpModule.routes": [
      { id: "HandshakeRoutes.routes", prefix: "/api/handshake", auth: "user", order: 21 },
    ],
  },
})
export class HandshakeRoutes {
  @Use() private readonly paths!: Paths;
  @Use() private readonly hmr!: Hmr;
  @Bind("HandshakeRoutes.routes") routes!: Hono<AppEnv>;
  setup();
}

Dependencies & Wiring

Extracted from class decorators
@Userequires (2)
paths: Paths · hmr: Hmr
@Bindbinds (1)
routes → HandshakeRoutes.routes: Hono<AppEnv>

Contributes

{
  "HttpModule.routes": [
    {
      "id": "HandshakeRoutes.routes",
      "prefix": "/api/handshake",
      "auth": "user",
      "order": 21
    }
  ]
}

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

Methods (1)

setup

setup()