Skip to content

Commit

Permalink
fix: /sandbox instead of /chat/sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
thucpn committed Oct 3, 2024
1 parent 28576ed commit 961b220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions templates/types/streaming/express/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import "dotenv/config";
import express, { Express, Request, Response } from "express";
import { initObservability } from "./src/observability";
import chatRouter from "./src/routes/chat.route";
import { sandbox } from "./src/controllers/sandbox.controller";

const app: Express = express();
const port = parseInt(process.env.PORT || "8000");
Expand Down Expand Up @@ -40,6 +41,7 @@ app.get("/", (req: Request, res: Response) => {
});

app.use("/api/chat", chatRouter);
app.use("/api/sandbox", sandbox);

app.listen(port, () => {
console.log(`⚡️[server]: Server is running at http://localhost:${port}`);
Expand Down
2 changes: 0 additions & 2 deletions templates/types/streaming/express/src/routes/chat.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { chatRequest } from "../controllers/chat-request.controller";
import { chatUpload } from "../controllers/chat-upload.controller";
import { chat } from "../controllers/chat.controller";
import { initSettings } from "../controllers/engine/settings";
import { sandbox } from "../controllers/sandbox.controller";

const llmRouter: Router = express.Router();

Expand All @@ -17,6 +16,5 @@ llmRouter.route("/request").post(chatRequest);
llmRouter.route("/config").get(chatConfig);
llmRouter.route("/config/llamacloud").get(chatLlamaCloudConfig);
llmRouter.route("/upload").post(chatUpload);
llmRouter.route("/sandbox").post(sandbox);

export default llmRouter;

0 comments on commit 961b220

Please sign in to comment.