mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: users list page
This commit is contained in:
1 parent
c8c9a584d0
commit
9e990a2fa4
5 files changed
+81
-3
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import { userList } from '../models/users.js'
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export async function userListController(req, res) {
|
||||
res.render('users', { users: await userList() })
|
||||
}
|
||||
Reference in new issue
Block a user