Ruloaooa commited on
Commit
41cd8b4
·
verified ·
1 Parent(s): 9e84f7c

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -0
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
+ });