ToolModelBindingsProvider · packages/server/src/services/tool-model-bindings.ts:60

ToolModelBindingsProvider

http-routes

Owns the slot; provides the interface and serves it at /api/projects/:projectId/models/ tool-bindings. The declarations are read off the slot at boot; each call attributes them to the packages of the plugin host as it is then (the host registers its plugins when the generation commits, after this tree booted).

API

contributes: {
  "HttpModule.routes": [
    {
      "id": "ToolModelBindingsProvider.routes",
      "prefix": "/api/projects/:projectId/models/tool-bindings",
      "auth": "user",
      "order": 99
    }
  ]
}

Code Half (@Bind)

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

Endpoints (2)

GET

/api/projects/:projectId/models/tool-bindings

ToolModelBindingsProvider.routes · tool-model-bindings.ts:49
PATCH

/api/projects/:projectId/models/tool-bindings

ToolModelBindingsProvider.routes · tool-model-bindings.ts:57