mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
7 lines
250 B
TypeScript
7 lines
250 B
TypeScript
import { AiNewChatModel } from "~/shared/schema/ai/AiNewChatSchema";
|
|
|
|
export default defineEventHandler(async event => {
|
|
const ctx = await getRequestContext(event, 'admin');
|
|
const result = await AiNewChatModel.find({});
|
|
return result;
|
|
}); |