diff --git a/storage/storage.go b/storage/storage.go index 4874d8e..9a419fa 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -160,12 +160,13 @@ func (s *StorageServiceImpl) Init() error { return err } - addrURL.Path = "/api" + addrURL.Path = "/api/worker" - addr = addrURL.String() + s.workerClient = workerClient.New(addrURL.String(), passwd) - s.workerClient = workerClient.New(addr, passwd) - s.busClient = busClient.New(addr, passwd) + addrURL.Path = "/api/bus" + + s.busClient = busClient.New(addrURL.String(), passwd) preUpload := func(hook tusd.HookEvent) (tusd.HTTPResponse, tusd.FileInfoChanges, error) { blankResp := tusd.HTTPResponse{}