sshChat-CLI/commands/stop.js

20 lines
480 B
JavaScript
Raw Normal View History

2023-01-11 15:48:57 -05:00
// start.js
const unirest = require("unirest");
async function stopContainer(key) {
let stopContainer = await unirest
.get('https://api.discord-linux.com/stop')
.headers({
'Accept': 'application/json', 'Content-Type': 'application/json',
'x-discord-linux-auth': key
})
return stopContainer.body
}
async function stop(key) {
const response = await stopContainer(key)
console.log(response)
}
module.exports = { stop, stopContainer }