Change uuid to key
This commit is contained in:
parent
6597dba36d
commit
8a8b438163
2 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue