var express = require('express');
var http = require('http');
var url = require('url');

app = express();
app.use(express.static('public'));

app.set('port', process.env.PORT || 9900);
app.get('/poster/:url', function(req, res) {
	var req = http.get(url.parse(decodeURIComponent(req.params.url)), function(resp) {
		resp.headers['cache-control'] = "public, max-age=2592000";
		res.writeHead(resp.statusCode, resp.headers);
		resp.pipe(res);
	});
	req.on('error', function(err) { console.error(err) });
});

app.get("/js/stremio-addons.min.js", function(req, res) {
  res.sendfile("./node_modules/stremio-addons/browser/stremio-addons.min.js");
});

app.listen(app.get('port'), function () {
    console.log('Express server listening on port ' + app.get('port'));
});


@@ -568,17 +568,17 @@
 res.send
-f
+F
 ile(%22./n
@@ -634,16 +634,76 @@
 .min.js%22
+, %7B root: __dirname %7D, function(e) %7B e && console.error(e) %7D
 );%0A%7D);%0A%0A

use res.sendFile