Added clientonly script

Added clientonly script to have server and client run at different locations
This commit is contained in:
Unknown 2017-06-25 12:18:59 +02:00 committed by unknown
parent 8893df118e
commit 66f93ee541
8 changed files with 118 additions and 6 deletions

View file

@ -62,6 +62,9 @@ var Server = function(config, callback) {
}
html = html.replace("#CONFIG_FILE#", configFile);
// Set a temporary cookie called "config" to the JSON encoded config object
res.cookie("config", JSON.stringify(config));
res.send(html);
});