Nicer page titles

This commit is contained in:
John Crepezzi 2011-11-18 16:42:05 -05:00
parent d69839b2fb
commit f935ac56c2
2 changed files with 11 additions and 3 deletions

View file

@ -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 });