Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
8 years ago
Commit
4fad7f545cea6524da1cc726cb7bf6bc68986eb6
1 parent
ad70df9e
del filter
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
apps/product/router.js
apps/product/router.js
View file @
4fad7f5
...
...
@@ -9,7 +9,7 @@
const
router
=
require
(
'express'
).
Router
();
// eslint-disable-line
const
cRoot
=
'./controllers'
;
const
auth
=
require
(
`
$
{
global
.
middleware
}
/auth`
)
;
const
filter
=
require
(
`
$
{
global
.
middleware
}
/filter-qs`
)
; /
/
参数过滤
//
const filter = require(`${global.middleware}/filter-qs`); // 参数过滤
// 商品详情controller
const
detail
=
require
(
`
$
{
cRoot
}
/detail`
)
;
...
...
@@ -83,24 +83,24 @@ router.post('/detail/notify/add', auth, notify.add); // 增
router
.
post
(
'/detail/notify/cancel'
,
auth
,
notify
.
cancel
);
// 删除到货通知
// 搜索
router
.
get
(
'/search/index'
,
filter
,
search
.
index
);
router
.
get
(
'/search/index'
,
search
.
index
);
router
.
get
(
'/search/filter/brands'
,
search
.
serachFilterBrands
);
router
.
get
(
'/search/suggest'
,
search
.
suggest
);
// 搜索提示
router
.
get
(
'/api/suggest'
,
search
.
suggest4Old
);
// 商品分类列表页
router
.
get
(
'/list/index'
,
filter
,
list
.
index
);
router
.
get
(
'/list/index'
,
list
.
index
);
// 新品到着
router
.
get
(
'/list/new'
,
filter
,
list
.
new
);
router
.
get
(
'/list/new'
,
list
.
new
);
// 品牌店铺
router
.
get
(
'/index/brand'
,
filter
,
list
.
brand
);
// 品牌店铺页
router
.
get
(
'/index/brand'
,
list
.
brand
);
// 品牌店铺页
router
.
get
(
'/index/about'
,
list
.
brandAbout
);
// 品牌店铺介绍页
router
.
post
(
'/index/isFavoriteBrand'
,
list
.
isFavoriteBrand
);
// 判断用户是否收藏品牌
router
.
post
(
'/index/getNodeContent'
,
list
.
getNodeContent
);
// 品牌页水牌
router
.
post
(
'/index/getAdnav'
,
list
.
getAdnav
);
// 品牌页系列
router
.
get
(
'/shoplist'
,
filter
,
list
.
shopList
);
// 店铺列表页
router
.
get
(
'/shoplist'
,
list
.
shopList
);
// 店铺列表页
router
.
post
(
'/shop/togglecollect'
,
favorite
.
collectShop
);
// 店铺收藏
router
.
post
(
'/index/isFavoriteShop'
,
favorite
.
isFavShop
);
// 判断用户是否收藏品牌
router
.
get
(
'/brand/couponsync'
,
list
.
brandCouponSync
);
...
...
Please
register
or
login
to post a comment