Created
April 10, 2017 15:18
-
-
Save guidone/8d7d3490ab9666403ade82fb89ce066b to your computer and use it in GitHub Desktop.
Express Middleware 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/mypage', function(req, res, next) { | |
sequelize.search(query1) | |
.on('success', function(res_query1) { | |
sequelize.search(query2) | |
.on('success',function(res_query2) { | |
res.render('my_template', { | |
query1: res_query1, | |
query2: res_query2 | |
}); | |
}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment