mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-11 04:48:32 +03:00
Minor changes to media endpoint
This commit is contained in:
@@ -33,7 +33,7 @@ export default ({ config, controller }) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => res.send(data.data))
|
.then(data => res.send(data))
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
res.status(err.status || 404).send({ error: err.message })
|
res.status(err.status || 404).send({ error: err.message })
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user