return the origin of peeked docs

This commit is contained in:
Brian Gough
2021-08-02 10:25:03 +01:00
parent 6ce28271eb
commit 69339aeb9d
2 changed files with 56 additions and 2 deletions
@@ -55,6 +55,7 @@ module.exports = HttpController = {
if (doc == null) {
return res.sendStatus(404)
} else {
res.setHeader('x-doc-status', doc.inS3 ? 'archived' : 'active')
return res.json(HttpController._buildDocView(doc))
}
})