feat: proje temizleme ve bildirim deneyimini iyilestir

This commit is contained in:
2026-03-17 01:09:36 +03:00
parent 6312ebc9e7
commit 2d78b821d0
7 changed files with 148 additions and 15 deletions

View File

@@ -56,6 +56,21 @@ app.post("/api/project/select", async (req, res) => {
}
});
app.post("/api/project/clear", async (req, res) => {
try {
await sessionManager.setProjectPath(null);
res.json({
ok: true,
projectPath: sessionManager.getState().currentProjectPath
});
} catch (error) {
res.status(500).json({
ok: false,
error: error.message
});
}
});
if (config.nodeEnv === "production") {
app.use(express.static(webDistPath));
app.get("*", (req, res) => {