Extend file.Service with filemanager dep and presign methods
Add GeneratePublicPresignedURL and GeneratePresignedURL methods to pkg/file. Update the GenerateFileURL path to /api/files/v1/public/ to reflect the upcoming endpoint rename. Pass fileManagerService to file.NewService in probod. Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -539,7 +539,7 @@ func (impl *Implm) Run(
|
||||
|
||||
cookieBannerService := cookiebanner.NewService(pgClient, impl.cfg.Branding)
|
||||
|
||||
fileService := file.NewService(pgClient, baseURL)
|
||||
fileService := file.NewService(pgClient, baseURL, fileManagerService)
|
||||
filesignService := filesign.NewService(pgClient, fileManagerService)
|
||||
|
||||
proboService, err := probo.NewService(
|
||||
|
||||
Reference in New Issue
Block a user