Skip to content

Lack of Support for Grouping of Routes #52

@tonoy30

Description

@tonoy30

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:

  1. Are there any existing workarounds or alternative solutions?
  2. How might the proposed feature align with the overall philosophy and architecture of gofr?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions