Change uuid to key
This commit is contained in:
@@ -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
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user