Function personnel_routes

Source
pub fn personnel_routes() -> Router<AppState>
Expand description

Builds and returns the /modules/{module_id}/personnel route group.

Routes:

  • GET /personnel → get all assigned users grouped by role
  • POST /personnel → assign one or more users to a role
  • DELETE /personnel → remove one or more users from a role
  • GET /personnel/eligible → fetch users not assigned to any role in the module