Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
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
陈峰
2019-02-25 21:29:38 +0800
Commit
fde0f69ee3a7110fe4d171d7d3fc511de02c9b8f
1 parent
762a30a8
commit
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
config/api-map.js
config/ssr-routes.js
config/api-map.js
View file @
fde0f69
...
...
@@ -17,6 +17,7 @@ module.exports = {
},
'/api/grass/columnArticleDetail'
:
{
api
:
'app.grass.columnArticleDetail'
,
cache
:
true
,
auth
:
true
,
params
:
{
page
:
{
type
:
Number
,
require
:
false
},
...
...
config/ssr-routes.js
View file @
fde0f69
module
.
exports
=
[
{
route
:
/grass
\/
article
\/\d
+/
,
route
:
/grass
\/
article
\/\d
+$/
,
cacheKey
:
'$url$params'
,
cache
:
true
},
{
route
:
/grass
\/
article
\/\d
+
\/
user/
,
cacheKey
:
'$url$params'
,
cache
:
true
},
...
...
Please
register
or
login
to post a comment