CognxSafeTrack commited on
Commit ·
d06feaa
1
Parent(s): b924b46
chore: revert /debug/net to google.com
Browse files- apps/api/src/index.ts +1 -1
apps/api/src/index.ts
CHANGED
|
@@ -76,7 +76,7 @@ server.get('/', async (_req, reply) => {
|
|
| 76 |
|
| 77 |
server.get('/debug/net', async (_req, reply) => {
|
| 78 |
try {
|
| 79 |
-
const res = await fetch('https://
|
| 80 |
return reply.send({ ok: true, status: res.status });
|
| 81 |
} catch (e: any) {
|
| 82 |
return reply.code(500).send({ ok: false, error: e?.message || String(e) });
|
|
|
|
| 76 |
|
| 77 |
server.get('/debug/net', async (_req, reply) => {
|
| 78 |
try {
|
| 79 |
+
const res = await fetch('https://www.google.com', { method: 'GET' });
|
| 80 |
return reply.send({ ok: true, status: res.status });
|
| 81 |
} catch (e: any) {
|
| 82 |
return reply.code(500).send({ ok: false, error: e?.message || String(e) });
|