Module: lib/api-server
Minimal HTTP API server wrapping Ollama for BBS AI chat. Serves POST /api/v1/ai and GET /api/v1/health.
Table of contents
Interfaces
Functions
Functions
startApiServer
▸ startApiServer(options?): http.Server
Create and start an HTTP server that proxies chat requests to Ollama. Returns the server instance so the caller can close it.
Parameters
| Name | Type |
|---|---|
options |
ApiServerOptions |
Returns
http.Server
Defined in
iniquity/src/lib/api-server.ts:21