Created
November 7, 2016 20:35
-
-
Save casesandberg/880746bf3695c633ad90a884232d8581 to your computer and use it in GitHub Desktop.
Express + React Router
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(express.static('src')) | |
app.get('*', (request, response) => { | |
response.sendFile(path.resolve(__dirname, '../src', 'index.html')) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment