Second deep audit→build→verify pass; all products typecheck clean. - gitgram-web (100): fix feed pagination, reel drafts, 6 gaps - gitgram-backend (99): add admin/moderator role checks to moderation routes; wire backend-e2e CI (Postgres+Redis services); 5 gaps - gitgram-mobile (97): fix broken create-reel flow; 11 gaps - aitm-core (98): dedupe vendored CLI command registrations; real vector search with local fallback; 7 gaps - aitm-api (99): replace hash-based embeddings with real OpenAI/Voyage embeddings (+ checkpoints test_status migration 0008); 8 gaps - aitm-mcp (99): add X-API-Key to workspace tool proxy calls; 8 gaps - aitm-website (94): fix annual billing checkout; 5 gaps Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
18 lines
799 B
TypeScript
18 lines
799 B
TypeScript
import { NextRequest, NextResponse } from 'next/server'
|
|
import { errorResponse, proxyAitmGet } from '../_lib'
|
|
|
|
/** GET — diff between two checkpoints. Requires projectId, fromCheckpointId, toCheckpointId. */
|
|
export async function GET(req: NextRequest): Promise<NextResponse> {
|
|
const { searchParams } = new URL(req.url)
|
|
const projectId = searchParams.get('projectId')
|
|
const fromCheckpointId = searchParams.get('fromCheckpointId')
|
|
const toCheckpointId = searchParams.get('toCheckpointId')
|
|
|
|
if (!projectId || !fromCheckpointId || !toCheckpointId) {
|
|
return errorResponse('projectId, fromCheckpointId and toCheckpointId are required', 400)
|
|
}
|
|
|
|
const query = new URLSearchParams({ projectId, fromCheckpointId, toCheckpointId })
|
|
return proxyAitmGet(`/time/diff?${query.toString()}`)
|
|
}
|