fix: update API endpoint for signing PDF to match new route

This commit is contained in:
Your Name
2026-04-06 12:03:09 +02:00
parent 4e0da90558
commit f63c929f25
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ def pptx_to_pdf_route():
# ---------------------------------------------------------------------------
# Sign PDF — POST /api/pdf-tools/sign
# Sign PDF — POST /api/convert/sign
# ---------------------------------------------------------------------------
@pdf_convert_bp.route("/sign", methods=["POST"])
@limiter.limit("10/minute")

View File

@@ -38,7 +38,7 @@ export default function SignPdf() {
fd.append('file', pdfFile);
fd.append('signature', sigFile);
fd.append('page', String(page));
const res = await api.post<TaskResponse>('/pdf-tools/sign', fd);
const res = await api.post<TaskResponse>('/convert/sign', fd);
setTaskId(res.data.task_id);
} catch (err) {
const msg = err instanceof Error ? err.message : t('common.errors.processingFailed');