mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 20:32:23 -06:00
chore: Simplified payloads and endpoints
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { RequestHandler, Router } from 'express';
|
||||
|
||||
import { instanceSchema, settingsSchema } from '../../validate/validate.schema';
|
||||
import { settingsSchema } from '../../validate/validate.schema';
|
||||
import { RouterBroker } from '../abstract/abstract.router';
|
||||
import { InstanceDto } from '../dto/instance.dto';
|
||||
import { SettingsDto } from '../dto/settings.dto';
|
||||
@@ -24,7 +24,7 @@ export class SettingsRouter extends RouterBroker {
|
||||
.get(this.routerPath('find'), ...guards, async (req, res) => {
|
||||
const response = await this.dataValidate<InstanceDto>({
|
||||
request: req,
|
||||
schema: instanceSchema,
|
||||
schema: null,
|
||||
ClassRef: InstanceDto,
|
||||
execute: (instance) => settingsController.findSettings(instance),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user