Change /migrate to GET (Coolify proxy blocks POST on root)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Robin Choice
2026-04-12 20:46:07 +02:00
parent 41e8124d78
commit 6971e0782b

View File

@@ -49,7 +49,7 @@ const app = new Hono<AppEnv>()
return c.json({ error: err.message }, 500); return c.json({ error: err.message }, 500);
}) })
.get('/health', (c) => c.json({ status: 'ok' })) .get('/health', (c) => c.json({ status: 'ok' }))
.post('/migrate', async (c) => { .get('/migrate', async (c) => {
try { try {
const fs = await import('fs'); const fs = await import('fs');
const pathMod = await import('path'); const pathMod = await import('path');