This commit is contained in:
Carlos
2025-04-10 22:57:04 -04:00
parent a488c377ce
commit 50d79b825c

View File

@ -33,6 +33,10 @@ const validateApiKey = (req, res, next) => {
next(); // Proceed if the API key is valid
};
app.get("/", (req, res) => {
res.send("Hello from the backend server!");
}
// Forward request to localhost:11434 (ollama)
app.post("/api/generate/api/chat", validateApiKey, async (req, res) => {