multy-stub/server/routers/todo/nav/index.js
Primakov Alexandr Alexandrovich 815f11d5bc add nav router
2025-02-10 22:07:54 +03:00

52 lines
1.2 KiB
JavaScript

const router = require("express").Router();
router.get("/users", (req, res) => {
res.send({
success: false,
body: [
{
id: "some-user-id",
name: "alexandr",
age: 38,
surname: null,
email: null,
rated: 4,
avatar:
"https://www.gravatar.com/avatar/6529e885535ef67a3fad810ad71167c2c03f79480936e9b3a714731753cbb47e?d=robohash",
friends: [
{
id: "2",
name: "not alexandr",
surname: null,
email: null,
rated: 2,
avatar: "https://www.gravatar.com/avatar/6e?d=robohash",
},
],
},
{
id: "2",
name: "not alexandr",
surname: null,
email: null,
age: 24,
rated: 5,
avatar: "https://www.gravatar.com/avatar/6e?d=robohash",
friends: [
{
id: "some-user-id",
name: "alexandr",
surname: null,
email: null,
rated: 3,
avatar:
"https://www.gravatar.com/avatar/6529e885535ef67a3fad810ad71167c2c03f79480936e9b3a714731753cbb47e?d=robohash",
},
],
},
],
})
})
module.exports = router