mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-09 06:49:08 +00:00
get entities
This commit is contained in:
@@ -14,7 +14,16 @@ import { InputNewCreateRequest } from '@victorradael/protospack';
|
||||
|
||||
@Controller('inputs')
|
||||
export class InputsController {
|
||||
constructor(private inputsClientService: InputsClientService) {}
|
||||
inputService: InputsService;
|
||||
constructor(private inputsClientService: InputsClientService) {
|
||||
this.inputService = new InputsService(this.inputsClientService);
|
||||
}
|
||||
@Get('available-entities/:plugin')
|
||||
async getAvailableEntities(@Body() body, @Param() params) {
|
||||
const { info } = body;
|
||||
const { plugin } = params;
|
||||
return await this.inputService.getAvailableEntities({ info, plugin });
|
||||
}
|
||||
|
||||
@Post('/test-connection')
|
||||
async testConnection(@Body() data) {
|
||||
|
||||
Reference in New Issue
Block a user