File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
apps/backend/src/public-api/routes/v1 Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import {
2525 Sections ,
2626} from '@gitroom/backend/services/auth/permissions/permission.exception.class' ;
2727import { 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}
You can’t perform that action at this time.
0 commit comments