From 1fbc8f06ad3301fef63a6bee90cee7c12d61158d Mon Sep 17 00:00:00 2001 From: ogeobubu Date: Tue, 22 Oct 2024 16:43:27 +0100 Subject: [PATCH] new features --- src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index b2d7842..8b074be 100644 --- a/src/app.ts +++ b/src/app.ts @@ -17,10 +17,10 @@ app.use(express.json()); app.use('/api/images', imageRoutes); app.use('/uploads', express.static('uploads')); -app.use(express.static(path.join(__dirname, 'client', 'dist'))); +app.use(express.static(path.join(__dirname, '../client', 'dist'))); app.get('*', (req, res) => { - res.sendFile(path.join(__dirname, 'client', 'index.html')); + res.sendFile(path.join(__dirname, '../client', 'index.html')); }); export default app;