Function create_api_router
Source pub fn create_api_router<DB: DatabaseProvider>(database: Arc<DB>) -> Router
Expand description
Create the API router with all endpoints
This function creates a router with all API endpoints configured and state attached.
§Arguments
database - Arc-wrapped database provider implementation
§Returns
An Axum Router configured with all API routes