Skip to content

Commit ad7f7d9

Browse files
committed
feat: find next available slot
1 parent cde0550 commit ad7f7d9

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ export class PublicIntegrationsController {
5656
);
5757
}
5858

59+
@Get('/find-slot/:id')
60+
async findSlotIntegration(
61+
@GetOrgFromRequest() org: Organization,
62+
@Param('id') id?: string
63+
) {
64+
return { date: await this._postsService.findFreeDateTime(org.id, id) };
65+
}
66+
5967
@Get('/posts')
6068
async getPosts(
6169
@GetOrgFromRequest() org: Organization,
@@ -128,9 +136,11 @@ export class PublicIntegrationsController {
128136
}
129137

130138
@Post('/video/function')
131-
videoFunction(
132-
@Body() body: VideoFunctionDto
133-
) {
134-
return this._mediaService.videoFunction(body.identifier, body.functionName, body.params);
139+
videoFunction(@Body() body: VideoFunctionDto) {
140+
return this._mediaService.videoFunction(
141+
body.identifier,
142+
body.functionName,
143+
body.params
144+
);
135145
}
136146
}

0 commit comments

Comments
 (0)