delete functionality
This commit is contained in:
@@ -38,9 +38,13 @@ func Router(mux *http.ServeMux, c config.ConfigInterface, t *torrent.TorrentMana
|
||||
})
|
||||
|
||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
davlog := logutil.NewLogger().Named("dav")
|
||||
switch r.Method {
|
||||
case "PROPFIND":
|
||||
dav.HandlePropfindRequest(w, r, t)
|
||||
dav.HandlePropfindRequest(w, r, t, davlog)
|
||||
|
||||
case "DELETE":
|
||||
dav.HandleDeleteRequest(w, r, t, davlog)
|
||||
|
||||
case http.MethodGet:
|
||||
universal.HandleGetRequest(w, r, t, c, cache)
|
||||
|
||||
Reference in New Issue
Block a user