Skip to content

Instantly share code, notes, and snippets.

@guidone
Created April 10, 2017 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guidone/8d7d3490ab9666403ade82fb89ce066b to your computer and use it in GitHub Desktop.
Save guidone/8d7d3490ab9666403ade82fb89ce066b to your computer and use it in GitHub Desktop.
Express Middleware 1
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