mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 04:12:23 -06:00
refactor: integrations folder
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { EventController } from '@api/controllers/event.controller';
|
||||
import { WebsocketDto } from '@api/integrations/event/websocket/dto/websocket.dto';
|
||||
import { PrismaRepository } from '@api/repository/repository.service';
|
||||
import { WAMonitoringService } from '@api/services/monitor.service';
|
||||
@@ -9,6 +8,8 @@ import { NotFoundException } from '@exceptions';
|
||||
import { Server } from 'http';
|
||||
import { Server as SocketIO } from 'socket.io';
|
||||
|
||||
import { EventController } from '../../event.controller';
|
||||
|
||||
export class WebsocketController extends EventController {
|
||||
private io: SocketIO;
|
||||
private corsConfig: Array<any>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Constructor } from '@api/dto/integration.dto';
|
||||
import { Constructor } from '@api/integrations/integration.dto';
|
||||
|
||||
export class WebsocketDto {
|
||||
enabled: boolean;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { RouterBroker } from '@api/abstract/abstract.router';
|
||||
import { InstanceDto } from '@api/dto/instance.dto';
|
||||
import { WebsocketDto } from '@api/integrations/event/websocket/dto/websocket.dto';
|
||||
import { websocketController } from '@api/integrations/integration.module';
|
||||
import { HttpStatus } from '@api/routes/index.router';
|
||||
import { websocketController } from '@api/server.module';
|
||||
import { instanceSchema, websocketSchema } from '@validate/validate.schema';
|
||||
import { RequestHandler, Router } from 'express';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user