Kaydet (Commit) ebff9bfa authored tarafından Hakkı Dizdar's avatar Hakkı Dizdar

Konteyner Yeniden Başlatma fonksiyonu eklendi

üst 064330f7
...@@ -28,6 +28,10 @@ app.post("/create", (req, res) => { ...@@ -28,6 +28,10 @@ app.post("/create", (req, res) => {
require("./docker/controllers/create")(req.body.image, res); require("./docker/controllers/create")(req.body.image, res);
}); });
app.post("/restart", (req, res) => {
res.send(docker.getContainer(req.body.container).restart());
});
require("./socket")(app); require("./socket")(app);
app.listen(3000); app.listen(3000);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment