From 91d00eec57d87c5837ff68bddc46613a1b1d59d2 Mon Sep 17 00:00:00 2001 From: regalijan Date: Fri, 20 Oct 2023 10:13:39 -0400 Subject: [PATCH] Add catchall api route --- functions/api/[[path]].ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 functions/api/[[path]].ts diff --git a/functions/api/[[path]].ts b/functions/api/[[path]].ts new file mode 100644 index 0000000..b3bf654 --- /dev/null +++ b/functions/api/[[path]].ts @@ -0,0 +1,5 @@ +import { jsonError } from "../common.js"; + +export async function onRequest(context: RequestContext) { + return jsonError("Not found", 404); +}