FIX: Create VPN using multipart form data to fetch file

This commit is contained in:
Gabriel Rosa
2022-08-03 16:30:32 -03:00
parent 2514245a44
commit cbee264182
4 changed files with 29 additions and 7 deletions
@@ -81,9 +81,18 @@ export class CreateNetworkConfigReq extends PickType(NetworkConfigDto, [
'description',
'type',
'network_type_id',
'plugin',
]) {
@ApiProperty()
properties: NetworkConfigOpenVpnProperties;
@ApiProperty({
type: 'file',
properties: {
file: {
type: 'string',
format: 'binary',
},
},
})
OVPN_FILE: any;
}
export class CreateNetworkConfigRes {
@ApiProperty()