Skip to content

Commit ee02098

Browse files
authored
Update serverAPI.js
1 parent 3affed0 commit ee02098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/serverAPI.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export function GET(url, callback) {
109109
});
110110
}
111111

112-
// function to call the shutdown API
112+
// Function to call the shutdown API
113113
export function shutdown(callback) {
114-
const shutdownUrl = 'http://localhost:5000/shutdown';
114+
const shutdownUrl = `${server}:${port}/shutdown`;
115115
POST(shutdownUrl, null, callback);
116116
}

0 commit comments

Comments
 (0)