Skip to content

Commit

Permalink
chore: repo overall update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Nov 21, 2024
1 parent 2722694 commit c28817d
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/canyon-platform/app/api/sourcecode/route.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
// export const dynamic = 'force-static'
// import prisma from "@/lib/prisma";
// import {decompressedData} from "@/utils/zstd";

import axios from "axios";
import prisma from "@/lib/prisma";
import { getFileInfo } from "@/utils/gitlab.adapter";
import { NextRequest } from "next/server";

const owner = "canyon-project";
const repo = "canyon";
const path = "packages/canyon-report/src/index.tsx";
const sha = "f721bf684d49254717e03ca14e53a1b1f8882019";
const token = "YOUR_PERSONAL_ACCESS_TOKEN";
const url = `https://api.github.com/repos/${owner}/${repo}/contents/${path}?ref=${sha}`;
const headers = {
// Authorization: `token ${token}`,
// Accept: "application/vnd.github.v3+json",
};

export async function GET(request: NextRequest) {
const { searchParams } = request.nextUrl;
const projectID = searchParams.get("project_id");
Expand Down

0 comments on commit c28817d

Please sign in to comment.