Skip to content

Instantly share code, notes, and snippets.

@CBenni
Created December 11, 2016 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CBenni/c4ed76f70a6da3b8a09fc2c77bb98b62 to your computer and use it in GitHub Desktop.
Save CBenni/c4ed76f70a6da3b8a09fc2c77bb98b62 to your computer and use it in GitHub Desktop.
var express = require("express");
var app = express();
var server = require('http').Server(app);
server.listen(9003);
app.get("*", function(req, res, next) {
console.log("Getting url "+req.path);
require('request').get("https://cdn.betterttv.net/emote"+req.path).pipe(res);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment