added docker deployment and added a preview to the files.

This commit is contained in:
2025-08-06 13:15:35 +02:00
parent c6b453ef81
commit bb812914b8
7 changed files with 249 additions and 19 deletions

View File

@@ -15,6 +15,10 @@ public class Server {
app.get("/api/download", DownloadRoute::handle); // for ?path=... downloads
app.get("/api/download/{file}", DownloadRoute::handle); // legacy/compat
app.get("/api/list-isos", DownloadRoute::list);
app.get("/api/view", DownloadRoute::view); // for file preview
// New endpoint for directory version/hash
app.get("/api/dir-version", DownloadRoute::dirVersion);
app.before("/api/*", ctx -> {
String ua = ctx.header("User-Agent");