Module controllers

Module controllers 

Source
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 controllers
  • ControllerMetadata: Enhanced metadata structure for registration
  • RouteRegistrationEngine: Handles automatic route registration

Structs§

ControllerMetadata
Enhanced controller metadata for auto-registration
ControllerRegistry
Central registry for controller auto-registration
ParamMetadata
Parameter metadata for route validation
RouteMetadata
Route metadata extracted from controller