How can I route to different pages in a node app without a pages folder?

I am working on a shopify node app. I am using the boiler template provided by shopify cli https://github.com/Shopify/shopify-app-template-node . However the new shopify boiler template does not contain pages folder and I am having trouble understanding how I can route to different pages as previously there used to be pages folder with next.js and every file within it can be routed. Can anybody help? . Thanks

1 Like

Check out this git repo which shows how to create router based on the basic boilerplate app given by Shopify.

https://github.com/kinngh/shopify-node-express-mongodb-app/blob/main/src/GlobalRoutes.jsx