Skip to content

Commit 3784dcf

Browse files
committed
fix: Server router not loading correct client routes on load
1 parent 922470e commit 3784dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const initRoutes = (app: Express, prisma: PrismaClient) => {
4848
app.delete('/api/request/:id', Requests.delete(prisma));
4949

5050
// Client index
51-
app.get('/', (req, res) => {
51+
app.get('*', (req, res) => {
5252
res.sendFile(CLIENT_INDEX);
5353
});
5454
};

0 commit comments

Comments
 (0)