Skip to content

Implement Routing Functionality #7

Closed
7 of 7 issues completed
Closed
7 of 7 issues completed
@klkucaj

Description

@klkucaj

Is your feature request related to a problem? Please describe.
The framework currently lacks built-in routing functionality, making it difficult to define and handle routes in a structured and scalable way. Developers need a robust routing mechanism to map HTTP requests to specific handlers efficiently.

Describe the solution you'd like
Introduce a routing system with the following features:

  • Support for defining routes with HTTP methods (e.g., GET, POST, PUT, DELETE).
  • Route parameter handling (e.g., /users/:id).
  • Middleware support for pre- and post-route execution.
  • Nested or grouped routes for better organization.
  • Error handling for undefined or invalid routes.

Describe alternatives you've considered

  • Using external routing libraries, which can work but adds unnecessary dependencies and reduces the framework's cohesiveness.

Additional context
A built-in routing system will provide a seamless experience for developers and align the framework with common practices in modern web development. It will also improve the maintainability and scalability of applications built with this framework.

Sub-issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions