Initial Commit

This commit is contained in:
2018-09-13 21:15:47 +02:00
commit 09f406cba7
84 changed files with 6920 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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),
selected: {index: true},
})
}