data: Added channel list/add/edit

This commit is contained in:
2018-10-11 21:55:15 +02:00
parent d380a47d8d
commit a5ac48e3d6
20 changed files with 329 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
const express = require("express")
const router = express.Router()
const {channelApi} = require("../../rpdata/api/Channel")
const channelsTemplate = require("../../marko/page/data/channels.marko")
router.get("/", async(req, res) => {
res.markoAsync(channelsTemplate, {
channels: channelApi.list(),
selected: { channels: true },
})
})
module.exports = router