Expand description
Controller auto-registration system for zero-boilerplate controller setup
This module implements the Controller Auto-Registration System that automatically discovers controllers from modules and registers their routes with the router.
§Overview
The system bridges the gap between compile-time module discovery (which only has controller names as strings) and runtime controller registration (which needs actual instances with metadata).
§Key Components
ControllerRegistry
: Central registry for discovered controllersControllerMetadata
: Enhanced metadata structure for registrationRouteRegistrationEngine
: Handles automatic route registration
Structs§
- Controller
Metadata - Enhanced controller metadata for auto-registration
- Controller
Registry - Central registry for controller auto-registration
- Param
Metadata - Parameter metadata for route validation
- Route
Metadata - Route metadata extracted from controller