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