form for upload, fix
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-07-15 17:24:34 +02:00
parent 677e34f1f3
commit 7ddb3c153e

View File

@@ -33,6 +33,7 @@ async def upload_form(request: Request):
""" """
Route serving an HTML page with the upload form Route serving an HTML page with the upload form
""" """
# BY AWARE OF THE HARDCODED ROOT_PATH BELOW
html_content = """ html_content = """
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
@@ -65,7 +66,7 @@ async def upload_form(request: Request):
let formData = new FormData(form); let formData = new FormData(form);
try { try {
let response = await fetch("/upload-minimal-sbom/", { let response = await fetch("/sbom-integrator/v1/upload-minimal-sbom/", {
method: "POST", method: "POST",
body: formData body: formData
}); });