This commit is contained in:
Gitea
2024-11-01 19:51:00 +01:00
parent f8a0cd50f8
commit 64640300dd
2 changed files with 8 additions and 2 deletions

View File

@@ -69,7 +69,13 @@ function getAPIResponse(apiReq: Request): Response {
slug: "hypothyroidism",
},
] satisfies DJAPIResultMap["/rp-articles"];
}
}
if (!jsonResponse) {
jsonResponse = { error: `API route ${ apiPath } not found.` };
status = 404;
}
}
const headers = new Headers();