diff options
Diffstat (limited to 'routes/posts.js')
| -rw-r--r-- | routes/posts.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/posts.js b/routes/posts.js index 00b092f..bc22670 100644 --- a/routes/posts.js +++ b/routes/posts.js @@ -6,6 +6,7 @@ const router = express.Router(); const marked = require("marked"); const hljs = require("highlight.js"); + router.get("/posts/:id", function (req, res) { const id = req.params.id; // get single document where slug === id |
