Bearer-auth JSON-RPC exposes engines, generate, and job tools without duplicating the aigen API path. Co-authored-by: Cursor <cursoragent@cursor.com>
7 lines
194 B
TypeScript
7 lines
194 B
TypeScript
import { readAigenJob } from '~/server/utils/aigenJob'
|
|
|
|
export default defineEventHandler((event) => {
|
|
const id = String(getRouterParam(event, 'id') || '')
|
|
return readAigenJob(event, id)
|
|
})
|