Function submission_routes

Source
pub fn submission_routes(app_state: AppState) -> Router<AppState>
Expand description

Builds and returns the /submissions route group for a given assignment context.

Routes:

  • GET / → List all submissions (restricted by role)
  • GET /{submission_id} → Get details of a specific submission
  • GET /{submission_id}/output → Get submission output (lecturer/tutor only)
  • POST / → Submit a new assignment (student only)
  • POST /remark → Remark submissions (lecturer/assistant lecturer only)
  • POST /resubmit → Resubmit submissions (lecturer/assistant lecturer only)