mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
backend: generating guests
This commit is contained in:
parent
b6bd300e1b
commit
5025a43dbd
16 changed files with 1380 additions and 167 deletions
9
backend/routes/auth/list.js
Normal file
9
backend/routes/auth/list.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
const { UserModel } = require('../../config/db');
|
||||
|
||||
module.exports = (req, res) => UserModel.find((err, articles) => {
|
||||
if (!err) return res.send(articles);
|
||||
|
||||
res.statusCode = 500;
|
||||
return res.send({ error: 'Server error' });
|
||||
});
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue