Skip to content

Commit a4a0923

Browse files
committed
feat: video function
1 parent 57b54c2 commit a4a0923

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apps/backend/src/public-api/routes/v1/public.integrations.controller.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
Sections,
2626
} from '@gitroom/backend/services/auth/permissions/permission.exception.class';
2727
import { VideoDto } from '@gitroom/nestjs-libraries/dtos/videos/video.dto';
28+
import { VideoFunctionDto } from '@gitroom/nestjs-libraries/dtos/videos/video.function.dto';
2829

2930
@ApiTags('Public API')
3031
@Controller('/public/v1')
@@ -126,12 +127,10 @@ export class PublicIntegrationsController {
126127
return this._mediaService.generateVideo(org, body);
127128
}
128129

129-
@Post('/video/:identifier/:function')
130+
@Post('/video/function')
130131
videoFunction(
131-
@Param('identifier') identifier: string,
132-
@Param('function') functionName: string,
133-
@Body('params') body: any
132+
@Body() body: VideoFunctionDto
134133
) {
135-
return this._mediaService.videoFunction(identifier, functionName, body);
134+
return this._mediaService.videoFunction(body.identifier, body.functionName, body.params);
136135
}
137136
}

0 commit comments

Comments
 (0)