workaround

This commit is contained in:
ろむねこ 2024-06-17 10:11:38 +09:00
parent 3ba5d14c1d
commit 5328b61598
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -4,7 +4,7 @@ import debugRouter from "@src/routers/debugRouter";
import os from "os"; import os from "os";
import { getCommitHash } from "@utils/gitCommitHash"; import { getCommitHash } from "@utils/gitCommitHash";
import authRouter from "@src/routers/authRouter"; import authRouter from "@src/routers/authRouter";
import { Response } from 'express'; import { Response, Request } from 'express';
const app = express(); const app = express();
const port = 3000; const port = 3000;
@ -43,7 +43,7 @@ console.log("\n");
logger.info("Starting server..."); logger.info("Starting server...");
app.get("/", (res: Response) => { app.get("/", (req: Request, res: Response) => {
res.status(200).sendFile("index.html", { root: "static" }); res.status(200).sendFile("index.html", { root: "static" });
}); });