serve http/webdav/restic/rc: rename --prefix flag to --baseurl #3398

The name baseurl is widely accepted for this feature so I decided to
rename it before it made it into a stable release.
This commit is contained in:
Nick Craig-Wood
2019-08-24 09:10:50 +01:00
parent 077b45322d
commit bd61eb89bc
5 changed files with 19 additions and 18 deletions

View File

@@ -68,7 +68,7 @@ func newServer(f fs.Fs, opt *httplib.Options) *server {
f: f,
vfs: vfs.New(f, &vfsflags.Opt),
}
mux.HandleFunc(s.Opt.Prefix+"/", s.handler)
mux.HandleFunc(s.Opt.BaseURL+"/", s.handler)
return s
}