Update index.js
Browse files
index.js
CHANGED
|
@@ -384,7 +384,7 @@ app.get('/brat', async (req, res) => {
|
|
| 384 |
});
|
| 385 |
|
| 386 |
|
| 387 |
-
app.post('/generate', async (req, res) => {
|
| 388 |
const { profileImage, mainImage, caption, views } = req.body;
|
| 389 |
totalReq++;
|
| 390 |
|
|
@@ -421,7 +421,7 @@ app.post('/generate2', async (req, res) => {
|
|
| 421 |
console.error('Error generating thread:', error);
|
| 422 |
res.status(500).json({ error: 'An error occurred while generating the thread.' });
|
| 423 |
}
|
| 424 |
-
});
|
| 425 |
|
| 426 |
// MongoDB Connection
|
| 427 |
mongoose.connect('mongodb+srv://Khoirul78:Khoirul78@cluster0.zhnha.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', {
|
|
|
|
| 384 |
});
|
| 385 |
|
| 386 |
|
| 387 |
+
/*app.post('/generate', async (req, res) => {
|
| 388 |
const { profileImage, mainImage, caption, views } = req.body;
|
| 389 |
totalReq++;
|
| 390 |
|
|
|
|
| 421 |
console.error('Error generating thread:', error);
|
| 422 |
res.status(500).json({ error: 'An error occurred while generating the thread.' });
|
| 423 |
}
|
| 424 |
+
});*/
|
| 425 |
|
| 426 |
// MongoDB Connection
|
| 427 |
mongoose.connect('mongodb+srv://Khoirul78:Khoirul78@cluster0.zhnha.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0', {
|