feat: add functionality to manually split documents at specific pages via the UI and API
Build and Push Multi-Platform Images / build-and-push (push) Successful in 33s

This commit is contained in:
2026-05-05 17:51:53 +02:00
parent 810afa52cd
commit 13b07dfa71
5 changed files with 85 additions and 10 deletions
@@ -88,6 +88,17 @@ export class InboxController {
await this.inboxService.deletePage(id, page, preferredUsername);
}
@Post(':id/pages/:page/split')
@HttpCode(204)
async toggleManualSplit(
@Param('id') id: string,
@Param('page', ParseIntPipe) page: number,
@Request() req: any,
): Promise<void> {
const preferredUsername: string | null = req.user?.preferredUsername ?? null;
await this.inboxService.toggleManualSplit(id, page, preferredUsername);
}
@Post(':id/reset-edits')
@HttpCode(204)
async resetEdits(@Param('id') id: string, @Request() req: any): Promise<void> {