Add option for http mount
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user