Skip to content

Commit 42e6a4d

Browse files
authored
Update cleanup.js
1 parent 7f57173 commit 42e6a4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cleanup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
const axios = require('axios');
1+
const { shutdown } = require('./serverapi');
22
const isWindows = process.platform === 'win32';
33

44
const kill = async (process) => {
55
try {
6-
// Call the shutdown API
7-
await axios.post('http://localhost:5000/shutdown');
6+
// calling the shutdown API
7+
await shutdown();
88
console.log('Shutdown API called successfully.');
99
} catch (error) {
1010
console.error('Error calling shutdown API:', error);

0 commit comments

Comments
 (0)