Skip to content

Can the Express routes be placed in a different file? #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aysiscore opened this issue Apr 11, 2020 · 0 comments
Open

Can the Express routes be placed in a different file? #5

aysiscore opened this issue Apr 11, 2020 · 0 comments

Comments

@aysiscore
Copy link

The server.js file has the Express routes in it. It would be better if these could be in a different file like express.router.js in the ./router folder. Is that possible with setupDevServer(app, (serverBundle) => { renderer = createRenderer(serverBundle); }); being required in both server.js and the express.router.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant