The frontend/UI server, written in JS using the MarkoJS library
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.

15 lines
374 B

  1. const express = require("express")
  2. const router = express.Router()
  3. const {channelApi} = require("../../rpdata/api/Channel")
  4. const channelsTemplate = require("../../marko/page/data/channels.marko")
  5. router.get("/", async(req, res) => {
  6. res.markoAsync(channelsTemplate, {
  7. channels: channelApi.list(),
  8. selected: { channels: true },
  9. })
  10. })
  11. module.exports = router