Add option for http mount

This commit is contained in:
Ben Sarmiento
2023-10-22 16:46:36 +02:00
parent 16d6bf4f81
commit 50075df13f
6 changed files with 300 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ import (
"time"
"github.com/debridmediamanager.com/zurg/internal/config"
"github.com/debridmediamanager.com/zurg/internal/dav"
"github.com/debridmediamanager.com/zurg/internal/net"
"github.com/debridmediamanager.com/zurg/internal/torrent"
"github.com/hashicorp/golang-lru/v2/expirable"
)
@@ -23,7 +23,7 @@ func main() {
t := torrent.NewTorrentManager(config, cache)
mux := http.NewServeMux()
dav.Router(mux, config, t, cache)
net.Router(mux, config, t, cache)
addr := fmt.Sprintf(":%s", config.GetPort())
log.Printf("Starting server on %s\n", addr)