<commit_before>module.exports = function(server) {

  server.get('/', function(req, res) {

    res.render('home', {
        title: "Title"
    });

  });

  server.get('/inbound/:mailgun_key', function(req, res) {
    console.log(req.body);
    if (process.env["MAILGUN_KEY"] === req.params["mailgun_key"]) {
      res.send("Email received!");
    } else {
      res.send(403, "Unauthorized");
    }
  });


};<commit_msg>Change mailgun route to POST<commit_after>module.exports = function(server) {

  server.get('/', function(req, res) {

    res.render('home', {
        title: "Title"
    });

  });

  server.post('/inbound/:mailgun_key', function(req, res) {
    console.log(req.body);
    if (process.env["MAILGUN_KEY"] === req.params["mailgun_key"]) {
      res.send("Email received!");
    } else {
      res.send(403, "Unauthorized");
    }
  });


};
{'fraction_non_alphanumeric': 0.20417633410672853, 'fraction_numerical': 0.0069605568445475635, 'mean_word_length': 3.051643192488263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6490702', 'n_tokens_mistral': 309, 'n_tokens_neox': 297, 'n_words': 44}