mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
8 lines
358 B
TypeScript
8 lines
358 B
TypeScript
import { ProjectShareModel, TProjectShare } from "~/shared/schema/project/ProjectShareSchema";
|
|
|
|
export default defineEventHandler(async event => {
|
|
const ctx = await getRequestContext(event, 'pid');
|
|
const { project_id } = ctx;
|
|
const list = await ProjectShareModel.find({ project_id });
|
|
return list.map(e => e.toJSON()) as TProjectShare[];
|
|
});
|