mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add dashboard
This commit is contained in:
7
dashboard/server/api/live_demo/index.ts
Normal file
7
dashboard/server/api/live_demo/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ProjectModel, TProject } from "@schema/ProjectSchema";
|
||||
|
||||
export default defineEventHandler(async event => {
|
||||
const liveDemoProject = await ProjectModel.findById('6643cd08a1854e3b81722ab5');
|
||||
if (!liveDemoProject) return;
|
||||
return liveDemoProject.toJSON() as TProject;
|
||||
});
|
||||
Reference in New Issue
Block a user