diff --git a/pages/api/hello.js b/pages/api/hello.js new file mode 100644 index 0000000..07b0dee --- /dev/null +++ b/pages/api/hello.js @@ -0,0 +1,11 @@ +const { ChromaClient } = require('chromadb'); + + +export default function handler(req, res) { + const client = new ChromaClient(); + const heartbeatFn = async () => { + return await client.heartbeat(); + } + let heartbeat = heartbeatFn(); + res.status(200).json({ heartbeat }) +} \ No newline at end of file