FIX: Add Cors Config

This commit is contained in:
Victor Radael
2022-03-29 15:10:29 -03:00
parent ca7f9855b1
commit 1f85d3f502
3 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export class InputsController {
}
@Get()
async findAll() {
async findAll((@Body() body) {
console.log(`/input`, 'ON FIND ALL ROUTE');
const inputService = new InputsService(this.inputsClientService);
+2 -2
View File
@@ -15,9 +15,9 @@ export class InputsService {
}
}
async findAll() {
async findAll(body) {
try {
const findAllInputResponse = await this.inputClient.findAll({});
const findAllInputResponse = await this.inputClient.findAll(body);
return findAllInputResponse;
} catch (err) {