Skip to main content

create_activity_read_routes

Function create_activity_read_routes 

Source
pub fn create_activity_read_routes(service: Arc<ActivityService>) -> Router
Expand description

Create Axum router with only the read (GET) endpoints for Activity.

Each route requires the entity’s read permission, so it needs an authenticated caller. Mutations must be served separately via create_activity_write_routes, typically wrapped in an auth middleware layer.