feat: sse events

This commit is contained in:
Nicolas Meienberger
2025-11-08 11:06:26 +01:00
parent 5b4b571581
commit fd3a527164
11 changed files with 263 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ export const repositoriesController = new Hono()
};
});
c.header("Cache-Control", "public, max-age=10, stale-while-revalidate=60");
// c.header("Cache-Control", "public, max-age=10, stale-while-revalidate=60");
return c.json<ListSnapshotsDto>(snapshots, 200);
})
@@ -108,7 +108,7 @@ export const repositoriesController = new Hono()
const result = await repositoriesService.listSnapshotFiles(name, snapshotId, path);
c.header("Cache-Control", "max-age=300, stale-while-revalidate=600");
// c.header("Cache-Control", "max-age=300, stale-while-revalidate=600");
return c.json<ListSnapshotFilesDto>(result, 200);
},