You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
389 B
14 lines
389 B
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},
|
|
})
|
|
}
|