Trying way of emulating cookies for chromecast

This commit is contained in:
Kasper Rynning-Tønnesen
2018-06-04 23:45:25 +02:00
parent b6c2a14445
commit 3bc0aa885f
3 changed files with 29 additions and 7 deletions

View File

@@ -34,12 +34,10 @@ try {
}
router.use(recaptcha.middleware.render, function(req, res, next) {
console.log("middleware render");
next(); // make sure we go to the next routes and don't stop here
});
router.route('/:channel_name').get(function(req, res, next){
console.log("channel_name get");
channel(req, res, next);
});
@@ -49,12 +47,10 @@ router.route('/r/:base64data').get(function(req, res, next){
});
router.route('/').get(function(req, res, next){
console.log("/ get");
root(req, res, next);
});
router.route('/').post(function(req, res, next){
console.log("/ post");
root(req, res, next);
});