| 123456789 |
- import { NextRequest, NextResponse } from 'next/server'
- import { getCopyHistory } from '@/lib/db/queries'
- export async function GET(req: NextRequest) {
- const limit = parseInt(req.nextUrl.searchParams.get('limit') || '50', 10)
- const offset = parseInt(req.nextUrl.searchParams.get('offset') || '0', 10)
- const history = getCopyHistory(limit, offset)
- return NextResponse.json(history)
- }
|