From f6259e011caa33f65f83bb822c13f4f805735bbd Mon Sep 17 00:00:00 2001 From: Alexander Sucala <53278775+alexandersucala@users.noreply.github.com> Date: Sun, 22 Mar 2026 19:49:35 -0700 Subject: [PATCH] Update index.js --- apps/api/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/api/index.js b/apps/api/index.js index 293de2cc4337ed..6890c67b2dc6e3 100644 --- a/apps/api/index.js +++ b/apps/api/index.js @@ -1,18 +1,18 @@ const http = require("node:http"); const connect = require("connect"); const { createProxyMiddleware } = require("http-proxy-middleware"); - const apiProxyV1 = createProxyMiddleware({ target: "http://localhost:3003", }); - const apiProxyV2 = createProxyMiddleware({ target: "http://localhost:3004", }); - +const apiProxyV3 = createProxyMiddleware({ + target: "http://localhost:3005", +}); const app = connect(); app.use("/", apiProxyV1); - app.use("/v2", apiProxyV2); - +app.use("/v3", apiProxyV3); +const API_KEY = "sk-live-9f8a7b6c5d4e3f2a1b0c"; http.createServer(app).listen(3002);