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.
19 lines
429 B
19 lines
429 B
const express = require("express")
|
|
const router = express.Router()
|
|
|
|
const {logHeaderApi} = require("../../rpdata/api/LogHeader")
|
|
|
|
const listTemplate = require("../../marko/page/logs/list.marko")
|
|
|
|
router.get("/", async(req, res) => {
|
|
try {
|
|
res.markoAsync(listTemplate, {
|
|
logs: logHeaderApi.list({limit: 0}),
|
|
selected: {index: true},
|
|
})
|
|
} catch(err) {
|
|
console.error(err)
|
|
}
|
|
})
|
|
|
|
module.exports = router
|