implamented Aroll cuter
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
@@ -34,5 +35,7 @@ func DownloadHandler(st *store.Store) http.HandlerFunc {
|
||||
fi, _ := f.Stat()
|
||||
w.Header().Set("Content-Disposition", `attachment; filename="aroll-cut.mp4"`)
|
||||
http.ServeContent(w, r, "aroll-cut.mp4", fi.ModTime(), f)
|
||||
|
||||
log.Println("Download handler works")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user