CommandRoutes · packages/server/src/http/routes/command.ts:94

CommandRoutes

http-routes

The platform's own copy is the one that serves. The runtime no longer mounts these routes itself — it publishes the shell's port as platform.shellFrames, and a platform too old to take the /api/command prefix simply has no host-command route at all.

API

contributes: {
  "HttpModule.routes": [
    {
      "id": "CommandRoutes.routes",
      "prefix": "/api/command",
      "auth": "user",
      "order": 10
    }
  ]
}

Code Half (@Bind)

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

Endpoints (2)

GET

/api/command

CommandRoutes.routes · command.ts:54
POST

/api/command/:command

CommandRoutes.routes · command.ts:73