mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-17 01:49:07 +00:00
Adding pre-commit
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user