mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 11:52:20 -06:00
chore: Integration with MinIO and S3
Adds support for MinIO and S3 for storing media files. Modified several files to implement this feature, including package.json, prisma/postgresql-schema.prisma, src/api/integrations/typebot/services/typebot.service.ts, src/api/routes/index.router.ts, src/api/services/channels/whatsapp.baileys.service.ts, and src/config/env.config.ts. Added untracked files for the new S3 integration. Also added a new S3Controller and S3Service for handling S3 related operations. This change allows for more flexible media storage options and enables the use of MinIO or S3 for storing media files.
This commit is contained in:
@@ -15,6 +15,8 @@ import { ChatwootController } from './integrations/chatwoot/controllers/chatwoot
|
||||
import { ChatwootService } from './integrations/chatwoot/services/chatwoot.service';
|
||||
import { RabbitmqController } from './integrations/rabbitmq/controllers/rabbitmq.controller';
|
||||
import { RabbitmqService } from './integrations/rabbitmq/services/rabbitmq.service';
|
||||
import { S3Controller } from './integrations/s3/controllers/s3.controller';
|
||||
import { S3Service } from './integrations/s3/services/s3.service';
|
||||
import { SqsController } from './integrations/sqs/controllers/sqs.controller';
|
||||
import { SqsService } from './integrations/sqs/services/sqs.service';
|
||||
import { TypebotController } from './integrations/typebot/controllers/typebot.controller';
|
||||
@@ -63,6 +65,9 @@ const authService = new AuthService(prismaRepository);
|
||||
const typebotService = new TypebotService(waMonitor, configService, prismaRepository);
|
||||
export const typebotController = new TypebotController(typebotService);
|
||||
|
||||
const s3Service = new S3Service(prismaRepository);
|
||||
export const s3Controller = new S3Controller(s3Service);
|
||||
|
||||
const webhookService = new WebhookService(waMonitor, prismaRepository);
|
||||
export const webhookController = new WebhookController(webhookService, waMonitor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user