Files
openmaic/OpenMAIC/app/api/runtime/v1/runs/[runId]/cancel/route.ts
T

8 lines
373 B
TypeScript

import type { NextRequest } from 'next/server';
import { authorizeLearningRuntime, runtimeUnauthorized } from '@/lib/makelore-runtime/auth';
export async function POST(request: NextRequest) {
if (!authorizeLearningRuntime(request)) return runtimeUnauthorized();
return Response.json({ status: 'not_supported', message: 'The current turn finishes independently.' });
}