Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/api/generate/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NextResponse } from "next/server";
import { getGeminiModel } from "@/lib/gemini";
import { getRepoData, getRepoContents } from "@/lib/octokit";
import { SUPPORTED_LANGUAGES } from "@/constants/languages";

Check warning on line 4 in src/app/api/generate/route.ts

View workflow job for this annotation

GitHub Actions / autofix

'SUPPORTED_LANGUAGES' is defined but never used

Check warning on line 4 in src/app/api/generate/route.ts

View workflow job for this annotation

GitHub Actions / build-and-lint

'SUPPORTED_LANGUAGES' is defined but never used

export const dynamic = "force-dynamic";

Expand All @@ -9,7 +9,7 @@
* AI README Generation Endpoint
* Optimized for data accuracy, clean prompt interpolation, and multi-language support.
*
* @param {Request} req - The incoming Next.js Request object containing the repo URL and optional language.
* @param {Request} req - The incoming Next.js/standard Web API Request object containing the repo URL and optional language.
* @returns {Promise<NextResponse>} A JSON response containing the generated Markdown or an error message.
*/
export async function POST(req: Request) {
Expand Down
Loading