Host and port made configurable
This commit is contained in:
parent
b159817a27
commit
6bdd7d7fc5
3 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue