Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.post("/getCourses",function(req,res){
- console.log("Here post /getCourses");
- db.Course.findAll({group: 'beginAt'},'DESC').success(function(courses){
- console.log("Find done");
- console.log(JSON.stringify(courses));
- res.send(courses);
- });
- });// end getCourses
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement