add images and metadata
This commit is contained in:
parent
54f573c93b
commit
d2a360caf1
2 changed files with 114 additions and 31 deletions
4
main.go
4
main.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue