Skip to content

Commit

Permalink
change path
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadim Ritter committed Aug 26, 2024
1 parent 0ebe809 commit b6cfe99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ app.use(routes);


//static files routes
app.get(ENV.BASE_PATH + "/", (req: Request, res: Response) => {
app.get("/", (req: Request, res: Response) => {
res.sendFile(mainIndexPath);

});

app.get(ENV.BASE_PATH + "*", (req: Request, res: Response) => {
app.get(ENV.BASE_PATH + "/*", (req: Request, res: Response) => {
res.sendFile(mainIndexPath);
});

Expand Down

0 comments on commit b6cfe99

Please sign in to comment.