mirror of
https://github.com/rclone/rclone
synced 2025-01-16 21:07:28 +01:00
webgui: Move to new package fs/rc/webgui.
This commit is contained in:
parent
0f7a2f0f3c
commit
5f56611a76
@ -6,6 +6,7 @@ import (
|
||||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/rclone/rclone/fs/rc/webgui"
|
||||
"log"
|
||||
"mime"
|
||||
"net/http"
|
||||
@ -80,7 +81,7 @@ func newServer(opt *rc.Options, mux *http.ServeMux) *Server {
|
||||
fs.Logf(nil, "Serving files from %q", opt.Files)
|
||||
fileHandler = http.FileServer(http.Dir(opt.Files))
|
||||
} else if opt.WebUI {
|
||||
if err := rc.CheckAndDownloadWebGUIRelease(opt.WebGUIUpdate, opt.WebGUIForceUpdate, opt.WebGUIFetchURL, config.CacheDir); err != nil {
|
||||
if err := webgui.CheckAndDownloadWebGUIRelease(opt.WebGUIUpdate, opt.WebGUIForceUpdate, opt.WebGUIFetchURL, config.CacheDir); err != nil {
|
||||
log.Fatalf("Error while fetching the latest release of Web GUI: %v", err)
|
||||
}
|
||||
if opt.NoAuth {
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Define the Web GUI helpers
|
||||
|
||||
package rc
|
||||
package webgui
|
||||
|
||||
import (
|
||||
"archive/zip"
|
Loading…
Reference in New Issue
Block a user