fix: both clients need specific api paths

This commit is contained in:
Derrick Hammer 2024-01-25 09:02:49 -05:00
parent 6d8beb0331
commit fce08283a2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 4 deletions

View File

@ -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{}