mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
10 lines
270 B
JavaScript
10 lines
270 B
JavaScript
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)
|
|
}
|