Created
February 11, 2015 19:10
-
-
Save devmoreno/73c154a40c10356fb171 to your computer and use it in GitHub Desktop.
This file contains hidden or 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("/", function(req, res){ | |
fetchModel() | |
//Second Call | |
.then(scanDifferences /*, **Function for on reject** */) | |
//Third Call | |
.then(insertNewones /*, **Function for on reject** */) | |
//Last Call | |
.done(function(promise){ | |
res.json({"Name": "Hello"}) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment