added docker deployment and added a preview to the files.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user