Toggle navigation
Toggle navigation
This project
Loading...
Sign in
姜枫
/
handlebar-single
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
姜枫
2016-09-27 20:29:41 +0800
Commit
4cac2dff99b5403bf92aedea6c6d4d1ed6389066
1 parent
7d2fa1d8
add json data
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
routes/index.js
routes/index.js
View file @
4cac2df
...
...
@@ -7,4 +7,8 @@ router.get('/', function(req, res, next) {
res
.
render
(
'detail'
,
data
);
});
router
.
get
(
'/data'
,
function
(
req
,
res
,
next
)
{
res
.
json
(
data
);
});
module
.
exports
=
router
;
\ No newline at end of file
...
...
Please
register
or
login
to post a comment