diff --git a/routes/extract-data.js b/routes/extract-data.js index 459d562..3872ca0 100644 --- a/routes/extract-data.js +++ b/routes/extract-data.js @@ -42,6 +42,7 @@ router.post("/", upload, async (req, res) => { data.format = 'mastodon'; break; case 'text/plain': + case 'application/json': if (file.originalname.endsWith('.json')){ const jsonData = JSON.parse(req.file.buffer.toString()); data.outbox = jsonData;