Module personnel

Source
Expand description

§Module Personnel Routes

Defines and wires up routes for the /modules/{module_id}/personnel endpoint group.

§Structure

  • post.rs — POST handlers (e.g., assign users to a role in a module)
  • get.rs — GET handlers (e.g., fetch assigned or eligible users)
  • delete.rs — DELETE handlers (e.g., remove users from a module role)

§Usage

Called via modules_routes() as a nested router mounted under /modules/{module_id}/personnel. This route group is protected by require_lecturer middleware in the parent router.

Functions§

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