From 9d884a02e826975832d97fc4371dd7de3869d29f Mon Sep 17 00:00:00 2001 From: rca Date: Sun, 16 Jun 2024 14:58:52 +0900 Subject: [PATCH] =?UTF-8?q?root=E3=81=B8=E3=81=AE=E3=82=A2=E3=82=AF?= =?UTF-8?q?=E3=82=BB=E3=82=B9=E3=81=A7=E5=9B=BA=E5=AE=9A=E3=83=91=E3=82=B9?= =?UTF-8?q?=E3=82=92=E8=BF=94=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 11e32c4..085eb72 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ import express from "express"; import Logger from "@src/logger"; import debugRouter from "@src/routers/debugRouter"; +import path from "path"; const app = express(); const port = 3000; @@ -9,7 +10,7 @@ const logger = new Logger(); logger.setTag("index.ts"); app.get("/", (req, res) => { - res.send("Hello World!"); + res.status(200).sendFile("index.html", { root: "static" }); }); app.use(express.json());