feat: video function

This commit is contained in:
Nevo David 2025-07-14 16:54:37 +07:00
parent 57b54c2d34
commit a4a0923ecb
1 changed files with 4 additions and 5 deletions

View File

@ -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);
}
}