update
This commit is contained in:
@@ -169,7 +169,7 @@ export default defineComponent({
|
|||||||
<p>
|
<p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
November 2024: Migrated to new web framework and fixed some buggy input.
|
1st November 2024: Migrated to new web framework and fixed some buggy input.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
13th March 2024: Removed the synthetic/pure distinction as it was confusing and
|
13th March 2024: Removed the synthetic/pure distinction as it was confusing and
|
||||||
|
|||||||
6
main.ts
6
main.ts
@@ -70,6 +70,12 @@ function getAPIResponse(apiReq: Request): Response {
|
|||||||
},
|
},
|
||||||
] satisfies DJAPIResultMap["/rp-articles"];
|
] satisfies DJAPIResultMap["/rp-articles"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!jsonResponse) {
|
||||||
|
jsonResponse = { error: `API route ${ apiPath } not found.` };
|
||||||
|
status = 404;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
|
|||||||
Reference in New Issue
Block a user