feat: Add Delete Project functionality to History Modal

This commit is contained in:
2025-12-29 15:28:04 +00:00
parent 1b1a779ae0
commit 6c1ec1dfe8
4 changed files with 133 additions and 22 deletions

View File

@@ -227,6 +227,10 @@ app.get('/api/projects/:id', (req, res) => {
runPython([dbScript, 'load', req.params.id], res);
});
app.delete('/api/projects/:id', (req, res) => {
runPython([dbScript, 'delete', req.params.id], res);
});
app.post('/api/save-project', (req, res) => {
const projectData = req.body;
const tmpDir = path.join(__dirname, 'tmp');