mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2026-05-05 03:59:09 -05:00
Return list of users to admin page
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { Router } from 'express';
|
||||
import models from '../db/models'
|
||||
const router = Router();
|
||||
|
||||
router.get('/users', async (req, res) => {
|
||||
const users = await models.User.findAll()
|
||||
|
||||
res.send(users);
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user