Skip to content

Commit

Permalink
fix(): wild routing
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed Apr 30, 2019
1 parent 4a75ec8 commit e51e49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const app = express();

app.use(express.static(path.join(__dirname, 'build')));

app.get('/', function(req, res) {
app.get('/*', function(req, res) {
res.sendFile(path.join(__dirname, 'build', 'index.html'));
});

Expand Down

0 comments on commit e51e49f

Please sign in to comment.