feat(attachments): add upload, metadata and content endpoints

This commit is contained in:
kk10
2026-11-02 22:21:07 +03:00
parent 42ddd2cad9
commit 759986f642
7 changed files with 454 additions and 1 deletions
+3
View File
@@ -97,16 +97,19 @@ func Run() error {
userService := service.NewUserService(queries)
chatService := service.NewChatService(pool, queries)
messageService := service.NewMessageService(pool, queries)
attachmentService := service.NewAttachmentService(queries, s3Client, cfg.S3.MaxUploadBytes, cfg.S3.MaxImagePixels)
router := NewRouter(
log,
cfg.Server.InstanceID,
cfg.Server.MaxInflightRequests,
cfg.S3.MaxUploadBytes,
pool,
authService,
userService,
chatService,
messageService,
attachmentService,
)
server := &http.Server{