added project deleting

This commit is contained in:
2023-07-14 10:47:53 +05:00
parent 1a88b8bb64
commit f57fec5cde
8 changed files with 47 additions and 101 deletions

View File

@ -131,6 +131,17 @@ app.post("/load_proj", (req,res) => {
func.log("router project loading error - "+error);
}
})
app.post("/proj/delete", (req,res) => {
try{
let inp = req.body;
let cook = req.cookies;
func.sid(cook,res,()=>{
proj.del(inp,cook,res);
})
} catch (error) {
func.log("router project loading error - "+error);
}
})
app.post("/get_projs", (req,res) => {
try{
let inp = req.body;