[MISC] Change comments, change app.use() for static files.
This commit is contained in:
parent
1602c7bd4e
commit
1819d03598
4
app.js
4
app.js
|
@ -52,7 +52,7 @@ app.use(function(req, res, next) {
|
|||
});
|
||||
|
||||
//deliver static files by default
|
||||
app.use(express.static(__dirname + '/static'));
|
||||
app.use("/", express.static(__dirname + '/static'));
|
||||
|
||||
//API: /session
|
||||
app.use("/session", function(req, res) {
|
||||
|
@ -101,7 +101,7 @@ app.use(function(err, req, res, next) {
|
|||
res.end();
|
||||
});
|
||||
|
||||
//fire it up as https (or http) server
|
||||
//fire it up as https (or http - NOT recommended(!)) server
|
||||
if(settings.general.https == true) {
|
||||
var httpsOptions = {
|
||||
"cert": fs.readFileSync(settings.https.cert),
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
$(function() {
|
||||
|
||||
//TODO: remove this entirely, allow user to assign own colors!
|
||||
$(".content-container-header").each(function() {
|
||||
$(this).css("background-color", "hsla(" + Math.round(Math.random() * 360) + ", 100%, 50%, 1);");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue