Compare commits

..

2 Commits

Author SHA1 Message Date
fb868bfefc Change path to json 2024-05-26 16:29:12 +03:00
086c94c58a Update json/users.json 2024-05-26 16:28:54 +03:00
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ const { response } = require('express');
const router = require('express').Router(); const router = require('express').Router();
router.get("/users", (request, response) => { router.get("/users", (request, response) => {
response.send(require("../json/users.json")) response.send(require("./json/users.json"))
}) })
module.exports = router; module.exports = router;

View File

@ -6,7 +6,7 @@
"first_name": "Вася", "first_name": "Вася",
"second_name": "Пупкин", "second_name": "Пупкин",
"role": "dogsitter", "role": "dogsitter",
"location": "Вахитовский район", "location": "Россия, республика Татарстан, Казань, улица Пушкина, 12",
"price": 1500, "price": 1500,
"about_me": "Я люблю собак" "about_me": "Я люблю собак"
}, },
@ -17,7 +17,7 @@
"first_name": "Ваня", "first_name": "Ваня",
"second_name": "Пуськин", "second_name": "Пуськин",
"role": "dogsitter", "role": "dogsitter",
"location": "Приволжский район", "location": "Россия, республика Татарстан, Казань, улица Абсалямова, 19",
"price": 1000000, "price": 1000000,
"about_me": "Я не люблю собак. И вообще я котоман." "about_me": "Я не люблю собак. И вообще я котоман."
}, },
@ -36,7 +36,7 @@
"first_name": "Галкин", "first_name": "Галкин",
"second_name": "Максим", "second_name": "Максим",
"role": ["owner", "dogsitter"], "role": ["owner", "dogsitter"],
"location": "Элитный район", "location": "Россия, республика Татарстан, Казань, проспект Ямашева, 83",
"price": 1000000, "price": 1000000,
"about_me": "Миллион алых роз" "about_me": "Миллион алых роз"
} }