Adding Routes to ExpressJS App from Modules

Add the hello and world routes like this:


For some reason, the connect-history-api-fallback module will cause to nothing matched route.

If you comment the code use history middleware:

// app.use(history());

Now, you can access the hello route via and access the world route via

example link:

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top