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
366 B

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