diff options
author | Alan Pearce | 2017-10-03 15:30:54 +0200 |
---|---|---|
committer | Alan Pearce | 2017-10-03 15:30:54 +0200 |
commit | ad56116d0df26b4a6fe7f9cd04a21965d3184af5 (patch) | |
tree | b8fcb4944e9e0d60cbe11b2226b9acd42713b7f7 /src/app.js | |
parent | 84da95bc4a8374bd3962e2479df560c67a1b94ca (diff) | |
download | homestead-ad56116d0df26b4a6fe7f9cd04a21965d3184af5.tar.lz homestead-ad56116d0df26b4a6fe7f9cd04a21965d3184af5.tar.zst homestead-ad56116d0df26b4a6fe7f9cd04a21965d3184af5.zip |
Reify taxonomies into just tags.
I'm probably not going to need anything else, and this makes it a lot clearer
Diffstat (limited to 'src/app.js')
-rw-r--r-- | src/app.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/app.js b/src/app.js index a323b9c..2c23258 100644 --- a/src/app.js +++ b/src/app.js @@ -53,13 +53,11 @@ module.exports = async function() { 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({ |