Host and port made configurable
This commit is contained in:
@@ -3,7 +3,9 @@ var winston = require('winston');
|
||||
// For handling serving stored documents
|
||||
|
||||
var DocumentHandler = function(options) {
|
||||
this.keyLength = options.keyLength || 20;
|
||||
if (options) {
|
||||
this.keyLength = options.keyLength || 20;
|
||||
}
|
||||
};
|
||||
|
||||
// TODO implement with FS backend
|
||||
|
Reference in New Issue
Block a user