GetAIBridgedHandler returns the in-memory aibridge HTTP handler set by [API.RegisterInMemoryAIBridgedHTTPHandler], or nil if the daemon has not been wired in. Used by the enterprise /api/v2/aibridge route (license-gated) to forward requests into the same in-memory handler that chatd dispatches to in
()
| 25 | // to forward requests into the same in-memory handler that chatd dispatches |
| 26 | // to in-process. |
| 27 | func (api *API) GetAIBridgedHandler() http.Handler { |
| 28 | return api.aibridgedHandler |
| 29 | } |
| 30 | |
| 31 | // RegisterInMemoryAIBridgedHTTPHandler mounts [aibridged.Server]'s HTTP router onto |
| 32 | // [API]'s router, so that requests to aibridged will be relayed from Coder's API server |