-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Summary:
The current version of gofr lacks support for grouping routes, which is a fundamental feature for organizing and managing complex web applications efficiently.
Description:
In many modern web applications, the number of routes can grow significantly, leading to a potential lack of organization and readability in the codebase. Grouping routes provides a clean and structured way to manage related routes under a common namespace, enhancing code maintainability and developer experience.
Expected Behavior:
I expect gofr to incorporate a feature that allows developers to group routes, similar to how other popular frameworks/libraries (e.g., gin, echo) provide this functionality. This feature should permit developers to organize routes logically, making the codebase more modular and easier to navigate.
Use Case:
Consider the scenario where an application has multiple API endpoints related to user authentication, each requiring different levels of access. With route grouping, developers could define a "auth" group and nest routes for login, registration, and user profile under this namespace. This would result in cleaner and more maintainable code, as well as improved readability.
Additional Questions:
- Are there any existing workarounds or alternative solutions?
- How might the proposed feature align with the overall philosophy and architecture of gofr?