From 96dd252d8e7a99537417aeede31d72f46155d47a Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Mon, 14 Apr 2025 16:22:13 +0800 Subject: [PATCH] build ok, --- .../src/app/api/db/lesson_types/list/route.ts | 5 +++++ .../src/app/api/db/lesson_types/list/test.http | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 002_source/cms/src/app/api/db/lesson_types/list/route.ts create mode 100644 002_source/cms/src/app/api/db/lesson_types/list/test.http diff --git a/002_source/cms/src/app/api/db/lesson_types/list/route.ts b/002_source/cms/src/app/api/db/lesson_types/list/route.ts new file mode 100644 index 0000000..97d76cd --- /dev/null +++ b/002_source/cms/src/app/api/db/lesson_types/list/route.ts @@ -0,0 +1,5 @@ +export const dynamic = 'force-static'; + +export async function GET(): Promise { + return Response.json({ hello: 'world' }); +} diff --git a/002_source/cms/src/app/api/db/lesson_types/list/test.http b/002_source/cms/src/app/api/db/lesson_types/list/test.http new file mode 100644 index 0000000..6910602 --- /dev/null +++ b/002_source/cms/src/app/api/db/lesson_types/list/test.http @@ -0,0 +1,17 @@ +### + +GET http://localhost:3000/api/db/lesson_types/list + +Content-Type: application/json +cache: no-store +cache-control: no-cache1 + +### + +GET http://localhost:8090/api/collections/LessonsTypes/records + +### + +POST http://localhost:3000/api/lesson_types/helloworld + +Content-Type: application/json