Nicer page titles
This commit is contained in:
parent
d69839b2fb
commit
f935ac56c2
2 changed files with 11 additions and 3 deletions
|
@ -13,7 +13,7 @@ DocumentHandler.prototype.handleGet = function(key, response) {
|
|||
if (DocumentHandler.documents[key]) {
|
||||
winston.verbose('retrieved document', { key: key });
|
||||
response.writeHead(200, { 'content-type': 'application/json' });
|
||||
response.end(JSON.stringify({ data: DocumentHandler.documents[key] }));
|
||||
response.end(JSON.stringify({ data: DocumentHandler.documents[key], key: key }));
|
||||
}
|
||||
else {
|
||||
winston.warn('document not found', { key: key });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue