Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -182,3 +182,7 @@ app.post('/generate', async (req, res) => {
|
|
| 182 |
app.listen(port, () => {
|
| 183 |
console.log(`Server berjalan di http://localhost:${port}`);
|
| 184 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
app.listen(port, () => {
|
| 183 |
console.log(`Server berjalan di http://localhost:${port}`);
|
| 184 |
});
|
| 185 |
+
|
| 186 |
+
process.on('SIGINT', async () => {
|
| 187 |
+
process.exit(0);
|
| 188 |
+
});
|