|
|
@ -106,10 +106,10 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, ip string, port int, |
|
|
|
} |
|
|
|
|
|
|
|
defaultMux.HandleFunc("/admin/mv", fs.moveHandler) |
|
|
|
defaultMux.HandleFunc("/admin/register", fs.registerHandler) |
|
|
|
defaultMux.HandleFunc("/__api__", fs.apiHandler) |
|
|
|
} |
|
|
|
|
|
|
|
defaultMux.HandleFunc("/admin/register", fs.registerHandler) |
|
|
|
defaultMux.HandleFunc("/", fs.filerHandler) |
|
|
|
if defaultMux != readonlyMux { |
|
|
|
readonlyMux.HandleFunc("/", fs.readonlyFilerHandler) |
|
|
|