Skip to content

Commit

Permalink
fix: type interred error for express router (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
thucpn authored Mar 27, 2024
1 parent dd6f84f commit b38adf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/types/streaming/express/src/routes/chat.route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import express from "express";
import express, { Router } from "express";
import { chatRequest } from "../controllers/chat-request.controller";
import { chat } from "../controllers/chat.controller";

const llmRouter = express.Router();
const llmRouter: Router = express.Router();

llmRouter.route("/").post(chat);
llmRouter.route("/request").post(chatRequest);
Expand Down

0 comments on commit b38adf8

Please sign in to comment.