mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
9 lines
308 B
TypeScript
9 lines
308 B
TypeScript
import { AiService } from "~/server/services/ai/AiService";
|
|
|
|
export default defineEventHandler(async event => {
|
|
|
|
const ctx = await getRequestContext(event, 'pid', 'permission:ai');
|
|
const { project_id } = ctx;
|
|
const res = await AiService.generateInsight(project_id.toString());
|
|
return res;
|
|
}); |