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.

11 lines
311 B

  1. const express = require("express")
  2. const {logsApi} = require("../../rpdata/api/Log")
  3. const viewTemplate = require("../../marko/page/logs-content/view.marko")
  4. module.exports = async(req, res, next) => {
  5. res.markoAsync(viewTemplate, {
  6. log: logsApi.find(req.params.id),
  7. selected: {index: true},
  8. })
  9. }