const express = require("express") const router = express.Router() const {storyApi} = require("../../rpdata/api/Story") const viewTemplate = require("../../marko/page/story-content/view.marko") module.exports = async(req, res, next) => { res.markoAsync(viewTemplate, { story: storyApi.find(req.params.id), categories: storyApi.categories(), selected: {index: true}, }) }