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.

17 lines
423 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. const limit = parseInt(req.query.limit) || 100
  7. res.markoAsync(changesTemplate, {
  8. changes: changesApi.list({limit}),
  9. selected: {changes: true},
  10. })
  11. })
  12. module.exports = router