Adding pre-commit

This commit is contained in:
alexsanderp
2022-02-04 10:03:55 -03:00
parent 7de6d5c14d
commit b8492c6840
46 changed files with 140 additions and 138 deletions
@@ -2,12 +2,12 @@
export class CreateInputGrpcClientDto {
cron:string;
name:string;
plugin:string;
values:string;
operation:string;
}
@@ -3,4 +3,3 @@ export class TestConnectionDTO{
values:string;
plugin:string;
}
@@ -1,14 +1,14 @@
export class InputGrpcClient {
id:string;
cron:string;
name:string;
plugin:string;
values:string;
operation:string;
}
+1 -1
View File
@@ -5,7 +5,7 @@ import { InputGrpcClientController } from './input-grpc-client.controller';
@Module({
controllers: [
InputGrpcClientController,
InputGrpcClientController,
// InputRestClientController
],
providers: [InputGrpcClientService],
+6 -6
View File
@@ -8,7 +8,7 @@ import { UpdateInputGrpcClientDto } from './dto/update-input-grpc-client.dto';
@Controller('input')
export class InputRestClientController {
@Get('/test-connection/')
async testConnection(){
console.log(process.env.DEV_URL+`/test-connection`, "ON TEST CONNECTION ROUTE")
@@ -16,17 +16,17 @@ export class InputRestClientController {
return response
})
}
@Post()
async create(@Body() createInputDto: CreateInputGrpcClientDto){
console.log(createInputDto)
console.log(process.env.DEV_URL+`/input`, "ON CREATE ROUTE")
await axios.post(process.env.DEV_URL+'/input',createInputDto).then( (response) => {
return response
})
}
@Get()
async list(){
console.log(process.env.DEV_URL+`/input`, "ON GET ROUTE")
@@ -43,7 +43,7 @@ export class InputRestClientController {
return response
})
}
@Put(':id')
async update(
@@ -60,7 +60,7 @@ export class InputRestClientController {
@Delete(':id')
async delete(@Param() id: string){
console.log(process.env.DEV_URL+`/input/${id}`, "ON DELETE ROUTE")
await axios.delete(process.env.DEV_URL+`/input/${id}`).then( (response) => {
return response
})
+2 -2
View File
@@ -58,8 +58,8 @@ message TestConnectionRequest{
}
message TestConnectionResponse{
// nao sei como vai ser a resposta
bool respose = 1;
}
}