createReducer & createAction

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-01-17 09:22:59 +03:00
parent 2d2ed497ca
commit 67fa902c75
13 changed files with 300 additions and 113 deletions

View File

@@ -17,7 +17,6 @@ timer.fast = timer(300)
// router.use(timer.fast)
router.post('/user-rate', (req, res) => {
console.log(req.body)
res.status(500).send({ ok: false })
})

View File

@@ -4,6 +4,7 @@
"some-user-id": {
"id": "some-user-id",
"name": "alexandr",
"age": 38,
"surname": null,
"email": null,
"rated": 4,
@@ -24,6 +25,7 @@
"name": "not alexandr",
"surname": null,
"email": null,
"age": 24,
"rated": 5,
"avatar": "https://www.gravatar.com/avatar/6e?d=robohash",
"friends": [