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);