Change uuid to key

This commit is contained in:
John Crepezzi 2011-11-18 16:25:18 -05:00
parent 6597dba36d
commit 8a8b438163
2 changed files with 4 additions and 5 deletions

View file

@ -32,11 +32,10 @@ DocumentHandler.prototype.handlePost = function(request, response) {
});
request.on('end', function(end) {
winston.verbose('added document', { key: key });
response.end(JSON.stringify({ uuid: key }));
response.end(JSON.stringify({ key: key }));
});
request.on('error', function(error) {
// TODO handle error
// TODO rename key to uuid everywhere behind the scenes
// TODO finish all TODOs
});
};