SPB Git forge

spb/immbot-ai

Public
1commits 1branches 0releases
1.5 MBsize
maindefault branch
20 days agolast push
TypeScript 98.3% CSS 0.9% Shell 0.7%
254 B · 8 lines typescript
Raw Blame History
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