upload files

This commit is contained in:
xingzhe.ru
2025-06-29 22:31:53 +00:00
parent b1a9ee1403
commit 8450cc2d4d
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: {}
});
};