Module routing

Source
Expand description

Routing module for the Rustisan framework

This module provides Laravel-style routing functionality with support for HTTP methods, route parameters, middleware, and route groups.

Structs§

Route
Route definition
RouteGroup
Route group for organizing related routes
Router
Router for managing routes

Enums§

RouteHandler
Route handler variants

Functions§

create_error_response
Helper function to create an error response
create_json_response
Helper function to create a JSON response
create_response_with_status
Helper function to create a response with custom status
create_success_response
Helper function to create a success response

Type Aliases§

AsyncHandler
Type alias for async route handlers
AsyncHandlerWithId
Type alias for async handlers with ID parameter
AsyncHandlerWithIdAndRequest
Type alias for async handlers with ID and request parameters
AsyncHandlerWithRequest
Type alias for async handlers with request parameter