data: Added channel list/add/edit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user