Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Should probably let 'auth' through too... It's late.
Browse files Browse the repository at this point in the history
It's probably best to add the routes after we've added the auth routes,
but hey, I started this way so I'm gonna keep doing it this way.
  • Loading branch information
sklirg committed Feb 11, 2018
1 parent 0ad6f23 commit 982fa94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (process.env.PRODUCTION) {
const staticDir = './dist';
logger.info(`Serving staticfiles from ${staticDir}`);
app.use('/assets/', express.static(staticDir));
app.get(/^(?!\/log(in|out))/, (req, res) =>
app.get(/^(?!\/(log(in|out)|auth))/, (req, res) =>
res.sendFile('index.html', { root: staticDir }));
}

Expand Down

0 comments on commit 982fa94

Please sign in to comment.