Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app/api/submit-job/route.ts
CHANGED
|
@@ -5,6 +5,10 @@ import { extractFilesFromAI, sanitizeBranchName } from "@/lib/ai-utils";
|
|
| 5 |
import { pushToGitHub } from "@/lib/github";
|
| 6 |
import { appConfig } from "@/config/app.config";
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
export async function POST(request: NextRequest) {
|
| 9 |
try {
|
| 10 |
const {
|
|
|
|
| 5 |
import { pushToGitHub } from "@/lib/github";
|
| 6 |
import { appConfig } from "@/config/app.config";
|
| 7 |
|
| 8 |
+
export async function GET() {
|
| 9 |
+
return NextResponse.json({ message: "Submit job endpoint is active. Use POST to submit a paper." });
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
export async function POST(request: NextRequest) {
|
| 13 |
try {
|
| 14 |
const {
|