Update api/controllers/ApiController.js
This commit is contained in:
@@ -75,4 +75,9 @@ exports.Reset = async function (req, res) {
|
|||||||
res.send({status:true});
|
res.send({status:true});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.Reboot = async function (req, res) {
|
||||||
|
const { execSync } = require('child_process');
|
||||||
|
execSync('sudo reboot now');
|
||||||
|
res.send({status:true});
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user