We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f57173 commit 42e6a4dCopy full SHA for 42e6a4d
cleanup.js
@@ -1,10 +1,10 @@
1
-const axios = require('axios');
+const { shutdown } = require('./serverapi');
2
const isWindows = process.platform === 'win32';
3
4
const kill = async (process) => {
5
try {
6
- // Call the shutdown API
7
- await axios.post('http://localhost:5000/shutdown');
+ // calling the shutdown API
+ await shutdown();
8
console.log('Shutdown API called successfully.');
9
} catch (error) {
10
console.error('Error calling shutdown API:', error);
0 commit comments