diff --git a/Services/server/src/app.ts b/Services/server/src/app.ts index 10d2042..b632f10 100644 --- a/Services/server/src/app.ts +++ b/Services/server/src/app.ts @@ -27,6 +27,11 @@ RegisterRoutes(router); app.use(swaggerSpecs.basePath, router); app.use(errorHandler); +app.use(express.static('static')) +app.get('*',(req,res)=>{ + res.sendFile(`${process.cwd()}/static/index.html`) +}) + app.listen(PORT, "0.0.0.0", () => console.log(`[APP] Application is running on http://localhost:${PORT}`), );