diff --git a/configManager.js b/configManager.js index df2500e..e920f1e 100644 --- a/configManager.js +++ b/configManager.js @@ -17,17 +17,26 @@ module.exports= getRootDirectory: function() { - return "/home/jeff/public/Shows/Rick And Morty/Season 1"; + return config.privateDir; }, getPublicDirectory: function() { - return "/home/jeff/work/aaSchool/Algo/online Lectures/"; + return config.publicDir; }, getServerURL: function() { - return "http://localhost:5000"; + return config.serverURL; + }, + + updateSystem: function(host, publicDir, privateDir) + { + config.serverURL = host; + config.privateDir = privateDir; + config.publicDir = publicDir; + + module.exports.syncToDisk(); } }; \ No newline at end of file diff --git a/html/header.html b/html/header.html index a40c60a..9ca05a3 100644 --- a/html/header.html +++ b/html/header.html @@ -40,6 +40,9 @@