Skip to content

Commit

Permalink
little update
Browse files Browse the repository at this point in the history
  • Loading branch information
alsotang committed Nov 5, 2014
1 parent f5fc5f8 commit e0f1201
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ app.get('/all', function (req, res, next) {
});


// 针对各个地域的 route 配置
app.get('/hangzhou', function (req, res, next) {
Post.find({author_location: '浙江杭州'}).sort({create_at: -1}).limit(100).exec(function (err, docs) {
if (err) {
Expand Down Expand Up @@ -63,6 +64,7 @@ app.get('/nanning', function (req, res, next) {
res.render('posts', {docs: docs});
});
});
// END 针对各个地域的 route 配置



Expand Down

0 comments on commit e0f1201

Please sign in to comment.