mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-10 12:28:34 +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(data => res.send(data.data))
|
||||
.then(data => res.send(data))
|
||||
.catch(err => {
|
||||
res.status(err.status || 404).send({ error: err.message })
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user