Update api/controllers/ApiController.js
This commit is contained in:
parent
b16b80b941
commit
43a4ce2cb6
|
@ -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});
|
||||||
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user