mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-11 01:49:07 +00:00
FIX: Connection and Network Flows (Create and Delete)
This commit is contained in:
@@ -91,19 +91,21 @@ export class NetworkConfigController {
|
||||
@Post()
|
||||
@ApiOkResponse({ type: CreateNetworkConfigRes })
|
||||
@ApiConsumes('multipart/form-data')
|
||||
@UseInterceptors(FileInterceptor('OVPN_FILE'))
|
||||
@UseInterceptors(FileInterceptor('ovpn_file'))
|
||||
async createNetworkConfigs(
|
||||
@User() user: RequestUser,
|
||||
@Body() body: CreateNetworkConfigReq,
|
||||
@UploadedFile() file: Express.Multer.File,
|
||||
@Body() body: CreateNetworkConfigReq,
|
||||
) {
|
||||
this.logger.info('POST /network-config', {
|
||||
user: user.user_id,
|
||||
customer: user.customer_name,
|
||||
});
|
||||
const { customer_id, customer_name, user_id } = user;
|
||||
return this.networkConfigService.createNetworkConfig(body, file, {
|
||||
customer_name: user.customer_name,
|
||||
customer_id: user.customer_id,
|
||||
customer_name,
|
||||
customer_id,
|
||||
user_id,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user