feat: proje temizleme ve bildirim deneyimini iyilestir
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user