<commit_before>'use strict';

let express = require('express');
let router = express.Router();

router.get('/', (req, res) => {
  res.render('recipes');
});

router.get('/bread', (req, res) => {
  res.render('recipes/bread');
});

router.get('/bread/basic', (req, res) => {
  res.render('recipes/bread/basic');
});

router.get('/bread/spicy', (req, res) => {
  res.render('recipes/bread/spicy');
});

router.get('/bread/cinnamon', (req, res) => {
  res.render('recipes/bread/cinnamon');
});

router.get('/no-regrets-french-toast', (req, res) => {
  res.render('recipes/no-regrets-french-toast');
});

router.get('/gin-blitz', (req, res) => {
  res.render('recipes/gin-blitz');
});<commit_msg>Vastly simplify recipes routing.<commit_after>'use strict';

let express = require('express');
let router = express.Router();

router.get('/', (req, res) => {
    res.render('recipes');
});

router.get('/*', (req, res, next) => {
    res.render('recipes' + req.path, {}, (err, html) => {
        if (err) {
            next();
        } else {
            res.send(html);
        }
    });
});
{'fraction_non_alphanumeric': 0.25069124423963135, 'fraction_numerical': 0.0, 'mean_word_length': 3.525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '4972740', 'n_tokens_mistral': 395, 'n_tokens_neox': 390, 'n_words': 64}