mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-06-02 15:32:30 +02:00
10 lines
200 B
JavaScript
10 lines
200 B
JavaScript
const { exec } = require('child_process')
|
|
|
|
module.exports = ({ define }) => {
|
|
define('reboot', async (payload, { knex, errors, utils }) => {
|
|
exec('shutdown -r now')
|
|
}, {
|
|
auth: true
|
|
})
|
|
}
|