<commit_before>module.exports = function(app) {
  var router = app.loopback.Router();
  router.get('/wiki/*', showWiki);
  router.get('/wiki', (req, res) => res.redirect(301, '/wiki/en/'));

  app.use(router);

  function showWiki(req, res) {
    res.render(
      'wiki/show',
      {
        title: 'Wiki | Free Code Camp',
        path: req.path.replace(/^\/wiki/, '')
      }
    );
  }
};<commit_msg>Redirect old wiki urls to root of forum<commit_after>module.exports = function(app) {
  var router = app.loopback.Router();
  router.get('/wiki/*', showForum);

  app.use(router);

  function showForum(req, res) {
    res.redirect(
      'http://forum.freecodecamp.com/'
    );
  }
};
{'fraction_non_alphanumeric': 0.19158200290275762, 'fraction_numerical': 0.0043541364296081275, 'mean_word_length': 2.8547486033519553, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4899088', 'n_tokens_mistral': 248, 'n_tokens_neox': 239, 'n_words': 45}