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:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user