import { AuthError } from "../auth/session.ts"; export function normalizeCourse(param: string): "IMM1003" | "IMM1033" { const c = param.toUpperCase(); if (c === "IMM1003" || c === "IMM1033") return c; throw new AuthError(404, "Cours inconnu."); }