diff --git a/packages/canyon-platform/app/api/project/route.ts b/packages/canyon-platform/app/api/project/route.ts index c0dd48a3..b12b44be 100644 --- a/packages/canyon-platform/app/api/project/route.ts +++ b/packages/canyon-platform/app/api/project/route.ts @@ -3,17 +3,14 @@ // import {decompressedData} from "@/utils/zstd"; export async function GET() { - - return Response.json({ - data:[ + data: [ { - id:'id', - pathWithNamespace:'canyon/canyon', - description:'sss', - lastReported:'2024-04-30' - } - ] - }) - + id: "id", + pathWithNamespace: "canyon/canyon", + description: "sss", + lastReported: "2024-04-30", + }, + ], + }); } diff --git a/packages/canyon-platform/app/api/sourcecode/route.ts b/packages/canyon-platform/app/api/sourcecode/route.ts new file mode 100644 index 00000000..27627e9a --- /dev/null +++ b/packages/canyon-platform/app/api/sourcecode/route.ts @@ -0,0 +1,17 @@ +// export const dynamic = 'force-static' +// import prisma from "@/lib/prisma"; +// import {decompressedData} from "@/utils/zstd"; + +export async function GET() { + return Response.json({ + data: [ + { + id: "id", + pathWithNamespace: "canyon/canyon", + description: "sss", + lastReported: "2024-04-30", + }, + ], + }); +} +bb5adc06534d19947e6bfc97e3eeecfd55564bed diff --git a/packages/canyon-report/src/App.tsx b/packages/canyon-report/src/App.tsx index c093497c..76efb751 100644 --- a/packages/canyon-report/src/App.tsx +++ b/packages/canyon-report/src/App.tsx @@ -64,7 +64,7 @@ function App() { target="_blank" rel="noreferrer" > - canyon1 + canyon {" "} at {date}