Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Route slide resources (not implemented)

  • Loading branch information...
commit 403eb4db9702acbd3ffa8ac650498c4f7509fa9a 1 parent bfdd76b
@Techniv authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 libs/http-server/http-serv.js
View
11 libs/http-server/http-serv.js
@@ -50,13 +50,22 @@ eventManager.on('ready', function(){
app.get('/slideshow/view/:id', function(req,res){
var args = req.params;
- console.info('Requesting on /slideshow.view/'+args.id);
+ console.info('Requesting on /slideshow/view/'+args.id);
var meta = slidesBrowser.getSlideMeta(args.id);
meta.layout = 'layout_slide-viewer.ejs';
res.render(meta.mainPath, meta);
});
+
+ app.get('/slideshow/view/:id/:resourceHandle/:resource', function(){
+ console.info('Requesting ressouce on '+req.url);
+ var args = req.params;
+ var meta = slidesBrowser.getSlideMeta(args.id);
+ if(meta.resources[args.resourceHandle]){
+ // TODO resource processing
+ }
+ })
});
module.exports = app;
Please sign in to comment.
Something went wrong with that request. Please try again.