Kopie van https://gitlab.com/studieverenigingvia/ict/centurion met een paar aanpassingen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
centurion/backend/src/timeline.ts

11 lines
295 B

import timeline from "./data/timelines";
export function getTimelineNames(): string[] {
return timeline.timelines.map((timeline) => timeline.name);
}
export function getTimeline(name: string) {
const t = timeline.timelines.find((t) => t.name == name);
if (!t) return null;
return t;
}