Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -741,11 +741,11 @@ app.post('/create-payment-link', express.json(), async (req, res) => {
|
|
| 741 |
});
|
| 742 |
|
| 743 |
/* health */
|
| 744 |
-
app.get('/health', (_req, res) =>
|
| 745 |
-
app.post('/health', (_req, res) =>
|
| 746 |
|
| 747 |
-
app.get('/', (_req, res) =>
|
| 748 |
-
app.post('/', (_req, res) =>
|
| 749 |
|
| 750 |
|
| 751 |
app.listen(PORT, () => {
|
|
|
|
| 741 |
});
|
| 742 |
|
| 743 |
/* health */
|
| 744 |
+
app.get('/health', (_req, res) => res.status(200).json({ ok: true }));
|
| 745 |
+
app.post('/health', (_req, res) => res.status(200).json({ ok: true }));
|
| 746 |
|
| 747 |
+
app.get('/', (_req, res) => res.status(200).json({ ok: true }));
|
| 748 |
+
app.post('/', (_req, res) => res.status(200).json({ ok: true }));
|
| 749 |
|
| 750 |
|
| 751 |
app.listen(PORT, () => {
|