upload files

This commit is contained in:
xingzhe.ru
2025-06-30 16:23:34 +00:00
parent c11bcd5d26
commit 36558dfb85
8 changed files with 240 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
const usersDb = require('../../shared/usersDb');
const makeLinks = require('../../shared/hateoas');
exports.list = (req, res) => {
res.json({
data: usersDb.getAll(),
_links: makeLinks('/api/user', {
self: '/list',
}),
_meta: {}
});
};