From 6c6f45b66abe231bcea0ce26d569140c46337f2b Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:41:42 +0700 Subject: [PATCH] fix: static file --- Services/server/src/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/Services/server/src/app.ts b/Services/server/src/app.ts index d67c922..d0d7c7b 100644 --- a/Services/server/src/app.ts +++ b/Services/server/src/app.ts @@ -26,6 +26,7 @@ RegisterRoutes(router); app.use(swaggerSpecs.basePath, router); app.use(errorHandler); +app.use(express.static("static")); app.use((_req, res, _next) => { res.sendFile(`${process.cwd()}/static/index.html`); });