add images and metadata

This commit is contained in:
visionmercer 2026-03-23 11:59:52 +01:00
commit d2a360caf1
2 changed files with 114 additions and 31 deletions

View file

@ -30,10 +30,12 @@ func main() {
// GET / → list all ISOs in the directory
// GET /browse/{iso} → list root of ISO
// GET /browse/{iso}/{path...} → list directory inside ISO
// GET /file/{iso}/{path...} → download a file from inside ISO
// GET /file/{iso}/{path...} → stream/view a file from inside ISO
// GET /raw/{filename} → serve raw disk files (ISOs, covers, descriptions)
mux.HandleFunc("/", h.ListISOs)
mux.HandleFunc("/browse/", h.BrowseISO)
mux.HandleFunc("/file/", h.DownloadFile)
mux.HandleFunc("/raw/", h.RawFile)
fmt.Printf("ISOSilo listening on %s\n", *addr)
fmt.Printf("Serving ISOs from: %s\n", *dir)