feat: video function
This commit is contained in:
parent
57b54c2d34
commit
a4a0923ecb
|
|
@ -25,6 +25,7 @@ import {
|
|||
Sections,
|
||||
} from '@gitroom/backend/services/auth/permissions/permission.exception.class';
|
||||
import { VideoDto } from '@gitroom/nestjs-libraries/dtos/videos/video.dto';
|
||||
import { VideoFunctionDto } from '@gitroom/nestjs-libraries/dtos/videos/video.function.dto';
|
||||
|
||||
@ApiTags('Public API')
|
||||
@Controller('/public/v1')
|
||||
|
|
@ -126,12 +127,10 @@ export class PublicIntegrationsController {
|
|||
return this._mediaService.generateVideo(org, body);
|
||||
}
|
||||
|
||||
@Post('/video/:identifier/:function')
|
||||
@Post('/video/function')
|
||||
videoFunction(
|
||||
@Param('identifier') identifier: string,
|
||||
@Param('function') functionName: string,
|
||||
@Body('params') body: any
|
||||
@Body() body: VideoFunctionDto
|
||||
) {
|
||||
return this._mediaService.videoFunction(identifier, functionName, body);
|
||||
return this._mediaService.videoFunction(body.identifier, body.functionName, body.params);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue