Skip to main content

router

Function router 

Source
pub fn router(ctx: impl Into<Arc<Context>>) -> Router
Expand description

Builds an axum::Router containing all auto-registered JSON API endpoints.

This is a convenience wrapper around RouterConfig::new(ctx).build(). Each resource that declared cinderblock_json_api in its extensions block will have its endpoints automatically included via inventory — no manual route construction is needed.