forked from bro-students/multy-stub
stubs
This commit is contained in:
parent
7809806b83
commit
0a6d50cb60
@ -56,6 +56,7 @@ app.use('/example', require('./routers/example'))
|
|||||||
// app.use('/car-wash', require('./routers/car-wash'))
|
// app.use('/car-wash', require('./routers/car-wash'))
|
||||||
app.use('/zoom-bar', require('./routers/zoom-bar'))
|
app.use('/zoom-bar', require('./routers/zoom-bar'))
|
||||||
app.use('/r-and-m', require('./routers/r-and-m'))
|
app.use('/r-and-m', require('./routers/r-and-m'))
|
||||||
|
app.use('/my', require('./routers/my'))
|
||||||
app.use('/edateam', require('./routers/edateam'))
|
app.use('/edateam', require('./routers/edateam'))
|
||||||
app.use('/webstar-project', require('./routers/webstar-project'))
|
app.use('/webstar-project', require('./routers/webstar-project'))
|
||||||
//app.use('/basket', require('./routers/basket'))
|
//app.use('/basket', require('./routers/basket'))
|
||||||
|
11
server/routers/my/index.js
Normal file
11
server/routers/my/index.js
Normal 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;
|
33
server/routers/my/json/catalog-data/success.json
Normal file
33
server/routers/my/json/catalog-data/success.json
Normal 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"]}]]
|
||||||
|
}
|
51
server/routers/my/json/item-data/newsuccess.json
Normal file
51
server/routers/my/json/item-data/newsuccess.json
Normal 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",
|
||||||
|
"Мужской"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user