Skip to content

Commit

Permalink
new features
Browse files Browse the repository at this point in the history
  • Loading branch information
ogeobubu committed Oct 22, 2024
1 parent c8633c9 commit 9fad7fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,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.get('*', (req, res) => {
res.sendFile(path.join(__dirname, 'client', 'dist', 'index.html'));
});

export default app;

0 comments on commit 9fad7fc

Please sign in to comment.