feat: add error commands page

This commit is contained in:
wancat committed 2023-10-14 17:43:12 +08:00
1 parent d249207283
commit 50e53b5667
6 files changed
+60 -1

No files matched your search

@@ -0,0 +1,9 @@
import { errorCommands } from '../models/commands.js'
// eslint-disable-next-line import/prefer-default-export
export async function commandListController(req, res) {
const payload = {
errorCommands: await errorCommands(),
}
res.render('commands', payload)
}