fix(client): 🐛 change put to post for attachment upload endpoint

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-05-18 01:19:51 -07:00
parent b2882a0751
commit a8a5654e97

View file

@ -197,7 +197,7 @@ export const imessageClientRouter = new Hono()
const items = await listMissingAttachments(getDb(), deviceId, limit);
return c.json({ success: true, data: { items, total: items.length } });
})
.put('/attachments/:id/blob', async (c) => {
.post('/attachments/:id/blob', async (c) => {
const deviceId = c.get('deviceId');
const id = c.req.param('id');
const ua = c.req.header('user-agent') ?? '';