From b8fc82c33fdb5ff47075e3af1bfe10dd82f3fd97 Mon Sep 17 00:00:00 2001 From: Kirigaya <1193466151@qq.com> Date: Wed, 16 Oct 2024 16:25:05 +0800 Subject: [PATCH] first commit --- src/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.ts b/src/main.ts index 2c28eb4..338eccd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -32,6 +32,8 @@ app.get('/', (req: Request, res: Response) => { app.post('/save-view', async (req: Request, res: Response) => { try { const { file, payload } = req.body; + console.log(payload); + const savePath = path.join(rootPath, file); const buffer = BSON.serialize(payload); fs.writeFileSync(savePath, buffer);