Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
1 answer
1k views

NextJS with a root level catchall route for all URLs dynamic middleware that splits into components

Here is the solution that I have. Due to the legacy product we have all of our URLs in one big Slug model in rails that maps URLs to models. EG ...
Romuloux's user avatar
2 votes
2 answers
121 views

Minimizing duplicate routes index.js

I am trying to build a REST API with express router, which contains of nested sub routes. I have mounted these sub routes in my index.js file. I have defined it as ...
Kunal Mukherjee's user avatar
1 vote
1 answer
59 views

Node router for marketplace routes

After cleaning up & some refactoring, one module of my code became like below. However, I'm feeling like there's still some unnecessary redundancy, and it can be improved further and look neater. ...
kmonsoor's user avatar
  • 113
3 votes
1 answer
148 views

Express.js routes management for large web application

I'm currently working on a large web application with numerous routes. Currently, our routes are in one large list in a single JSON file. We recently ran into a problem due to the precedence of ...
Aaron Goldsmith's user avatar
8 votes
2 answers
221 views

Node JS routing system

I am doing a website for an association and I have never done the server side before. Here I made a very simple routing system: ...
Shashimee's user avatar
  • 131
1 vote
1 answer
980 views

Routes for a user controller in a Node.js application

I have a very simple Node application that routes requests to /users to the following file: users.js ...
Baub's user avatar
  • 111
2 votes
1 answer
157 views

Parameterized route

Is this approach considered good practice, or should I create separate router.delete functions for all my routes? Please, explain why. ...
Engineering Machine's user avatar