my-project stubs #4

Merged
primakov merged 2 commits from my into master 2024-05-25 12:50:20 +03:00
4 changed files with 96 additions and 0 deletions
Showing only changes of commit 0a6d50cb60 - Show all commits

View File

@ -56,6 +56,7 @@ app.use('/example', require('./routers/example'))
// app.use('/car-wash', require('./routers/car-wash'))
app.use('/zoom-bar', require('./routers/zoom-bar'))
app.use('/r-and-m', require('./routers/r-and-m'))
app.use('/my', require('./routers/my'))
app.use('/edateam', require('./routers/edateam'))
app.use('/webstar-project', require('./routers/webstar-project'))
//app.use('/basket', require('./routers/basket'))

View File

@ -0,0 +1,11 @@
const router = require('express').Router();
router.get('/catalog-data', (request, response) => {
response.send(require('./json/catalog-data/success.json'))
})
router.get('/catalog-data', (request, response) => {
response.send(require('./json/item-data/newsuccess.json'))
})
module.exports = router;

View File

@ -0,0 +1,33 @@
{
"data": [
[{"photo": "shirt2_1x",
"alt" :"ХУДИ УТЕПЛЕННОЕ",
"name": "ХУДИ УТЕПЛЕННОЕ",
"price": "1500 руб.",
"setphoto": ["shirt2_1x","shirt2_2x", "shirt2_4x"]},
{"photo": "shirt3_1x",
"alt" :"РУБАШКА МУЖСКАЯ",
"name": "РУБАШКА МУЖСКАЯ",
"price": "1500 руб.",
"setphoto": ["shirt3_1x","shirt3_2x", "shirt3_4x"]},
{"photo": "shirt4_1x",
"alt" :"ТРЕНЧ ЖЕНСКИЙ",
"name": "ТРЕНЧ ЖЕНСКИЙ",
"price": "1500 руб.",
"setphoto": ["shirt4_1x","shirt4_2x", "shirt4_4x"]}],
[{"photo": "shirt6_1x",
"alt" :"ФУТБОЛКА С ОРНАМЕНТОМ ПЕЙСЛИ",
"name": "ФУТБОЛКА С ОРНАМЕНТОМ ПЕЙСЛИ",
"price": "1500 руб.",
"setphoto": ["shirt6_1x","shirt6_2x", "shirt6_4x"]},
{"photo": "shirt5_1x",
"alt" :"ЗИП С ПРИНТОМ",
"name": "ЗИП С ПРИНТОМ",
"price": "1500 руб.",
"setphoto": ["shirt5_1x","shirt5_2x", "shirt5_4x"]},
{"photo": "shirt1_1x",
"alt" :"ФУТБОЛКА С ОРНАМЕНТОМ МОСФИЛЬМ",
"name": "ФУТБОЛКА С ОРНАМЕНТОМ МОСФИЛЬМ",
"price": "1500 руб.",
"setphoto": ["shirt1_1x","shirt1_2x", "shirt1_4x"]}]]
}

View File

@ -0,0 +1,51 @@
{
"data":[
{
"photo": ["shirt7_1x", "shirt7.1_1x"],
"alt" :"ФУТБОЛКА 'ЧЕРНОЕ МОРЕ'",
"name": "ФУТБОЛКА 'ЧЕРНОЕ МОРЕ'",
"price": "1500 руб.",
"setphoto": ["shirt7_1x","shirt7.1_1x","shirt7_2x","shirt7.2_2x", "shirt7_4x", "shirt7.2_4x"],
"size": ["XS/S","M/L","XL/XLL"],
"body": ["79653",
"Весна-Лето 2023",
"Черное море",
"без застежки",
"светло-серый",
"100% Хлопок",
"свободный",
"картина",
"удлиненная",
"101-78-96",
"178",
"M (48)",
"без карманов",
"160",
"Женский"]
},
{
"photo": ["shirt8_1x", "shirt8.2_1x"],
"alt" :"ЗИП МУЖСКОЙ",
"name": "ЗИП МУЖСКОЙ",
"price": "1500 руб.",
"setphoto": ["shirt8_1x","shirt8.2_1x","shirt8_2x","shirt8.1_2x", "shirt8_4x", "shirt8.1_4x"],
"size": ["XS/S","M/L","XL/XLL"],
"body": ["7934",
"Весна-Осень 2023",
"Третьяковская галерея",
"с застежкой",
"черный",
"100% Хлопок",
"свободный",
"надпись",
"удлиненная",
"90-80-96",
"182",
"L (50)",
"с карманами",
"160",
"Мужской"]
}
]
}