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
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
f281b68c8c00d5b416740055db4fe5c8b5fa83f3
2 parents
bf961819
fb4126f4
Merge branch 'release/customer-service'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
apps/common/controllers/secret-switch.js → apps/3party/controllers/secret-switch.js
apps/3party/router.js
apps/common/router.js
apps/
common
/controllers/secret-switch.js → apps/
3party
/controllers/secret-switch.js
View file @
f281b68
apps/3party/router.js
View file @
f281b68
...
...
@@ -10,9 +10,12 @@ const router = require('express').Router(); // eslint-disable-line
const
cRoot
=
'./controllers'
;
const
ads
=
require
(
`
$
{
cRoot
}
/ads`
)
; /
/
第三方广告平台对接
const
secretSwitch
=
require
(
`
$
{
cRoot
}
/secret-switch`
)
;
// Your controller here
router
.
get
(
'/ads'
,
ads
.
jump
);
router
.
get
(
'/secret-switch'
,
secretSwitch
.
index
);
// 设置cache
module
.
exports
=
router
;
...
...
apps/common/router.js
View file @
f281b68
...
...
@@ -13,7 +13,6 @@ var multipart = require('connect-multiparty');
var
multipartMiddleware
=
multipart
();
const
rvCtrl
=
require
(
`
$
{
cRoot
}
/recent-view`
)
;
const
cache
=
require
(
`
$
{
cRoot
}
/secret-switch`
)
;
const
uploadCtrl
=
require
(
`
$
{
cRoot
}
/upload`
)
;
const
erp2goods
=
require
(
`
$
{
cRoot
}
/erp2goods`
)
;
const
getBanner
=
require
(
`
$
{
cRoot
}
/getBanner`
)
;
...
...
@@ -25,8 +24,6 @@ router.post('/upload/image', multipartMiddleware, uploadCtrl.uploadImg);
router
.
get
(
'/erp2goods'
,
erp2goods
.
find
);
router
.
get
(
'/secret-switch'
,
cache
.
index
);
// 设置cache
router
.
get
(
'/getbanner'
,
getBanner
.
index
);
router
.
get
(
'/passport'
,
passport
.
index
);
...
...
Please
register
or
login
to post a comment