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:
Ludovic Vielle
2026-06-08 19:52:36 +02:00
parent e0c9e4e4a8
commit 14c500b1b2
3 changed files with 78 additions and 7 deletions

View File

@@ -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(