summaryrefslogtreecommitdiff
path: root/frontend.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend.js')
-rw-r--r--frontend.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend.js b/frontend.js
index f9c7839..90fc67a 100644
--- a/frontend.js
+++ b/frontend.js
@@ -53,13 +53,14 @@ exports.start = function(config) {
});
});
});
- config.app.get('*', function(req, res){
+ config.app.get('*', function(req, res) {
model.getAllSlides(function(slidesets) {
- var body = '<h3>Slideshows:</h3>';
+ var body = '<head></head><body><h3>Slideshows:</h3>';
for(var slideset in slidesets) {
if(!slidesets.hasOwnProperty(slideset)) { continue; }
body = body + '<a href="/slides/' + slidesets[slideset] + '">'+slidesets[slideset]+'</a><br/>';
}
+ body = body + '</body>';
res.setHeader('Content-Length', body.length);
res.end(body);
});