Reify taxonomies into just tags. I'm probably not going to need anything else, and this makes it a lot clearer
1 file changed, 5 insertions(+), 7 deletions(-)
changed files
M src/app.js → src/app.js
@@ -53,13 +53,11 @@ "/post/:filename", actions.post(config, responders.post, Posts.posts) ); - for (let [term, items] of Posts.taxonomies) { - router.get( - `taxon-${term}`, - `/${term}/:value`, - actions.taxonGenerator(config, responders.list, term, items) - ); - } + router.get( + "tag", + "/tag/:name", + actions.tag(config, responders.list, Posts.tags) + ); app.use( helmet({