refactor: prepare rundown loading process

This commit is contained in:
Carlos Valente
2025-07-03 17:24:34 +02:00
committed by Carlos Valente
parent c6c1e4a5d7
commit 3ce5b42e05
9 changed files with 171 additions and 10 deletions
@@ -37,7 +37,17 @@ router.get('/', async (_req: Request, res: Response<ProjectRundownsList>) => {
const rundown = getCurrentRundown();
// TODO: we currently make a project with only the current rundown
res.json([{ id: rundown.id, title: rundown.title, numEntries: rundown.order.length, revision: rundown.revision }]);
res.json({
loaded: rundown.id,
rundowns: [
{
id: rundown.id,
title: rundown.title,
numEntries: rundown.order.length,
revision: rundown.revision,
},
],
});
});
/**