module.exports = function(app) {
  var taskmaster = require("./taskmaster");
  app.use(require("body-parser").raw({ type: "*/*" }));
  app.get("/", (request, response) => {
    require("fs-extra").readFile("home.html", function(err, data) {
      if (err) {
        throw err;
      }
      response.send(data.toString());
    });
  });
  var redirect = function(request, response){
    response.append("Location", "/");
    response.status(303);
    response.send("Not here...");
  };
  app.get("/*", redirect);
  app.post("/:user/:repository", (request, response) => {
    var repo = request.params.user + "/" + request.params.repository;
    taskmaster.add(
      repo,
      request.get("X-GitHub-Event"),
      request.get("X-Hub-Signature"),
      request.body
    );
    response.send(JSON.stringify(true));
  });
  app.post("/|/[^/]+|/[^/]+/[^/]+/.+", redirect);

  app.listen(require("./app-config").port, err => {
    if (err) {
      return console.log("something bad happened", err);
    }
    taskmaster.run();
  });
};

@@ -1,39 +1,4 @@
-module.exports = function(app) %7B%0A  
 var 
@@ -39,40 +39,162 @@
 %22);%0A
-  app.use(require(%22body-parser%22)
+var config = require(%22./app-config%22);%0Avar fs = require(%22fs-extra%22);%0Avar parser = require(%22body-parser%22);%0Amodule.exports = function(app) %7B%0A  app.use(parser
 .raw
@@ -257,35 +257,18 @@
 %3E %7B%0A    
-require(%22fs-extra%22)
+fs
 .readFil
@@ -948,39 +948,22 @@
 .listen(
-require(%22./app-
 config
-%22)
 .port, e

Update setup.js