Skip to main content

router

Macro router 

Source
router!() { /* proc-macro */ }
Expand description

Builds a const_router::Router with routes sorted by static string key.

The first input is the fallback handler. The remaining inputs use "/path" => handler entries separated by commas. Each handler should be produced by #[const_router::handler]. Duplicate keys are rejected at macro expansion time.