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.
20 lines
450 B
20 lines
450 B
const express = require("express")
|
|
const router = express.Router()
|
|
|
|
const common = require("./common")
|
|
const {tagApi} = require("../../rpdata/api/Tag")
|
|
|
|
const tagListTemplate = require("../../marko/page/story/tag-list.marko")
|
|
|
|
router.get("/", common, (req, res) => {
|
|
try {
|
|
res.markoAsync(tagListTemplate, {
|
|
tags: tagApi.list(),
|
|
selected: {tags: true},
|
|
})
|
|
} catch(err) {
|
|
console.error(err)
|
|
}
|
|
})
|
|
|
|
module.exports = router
|