Last active
June 28, 2021 03:29
-
-
Save dsibinski/91250a9da08780129b7dd4e7b056f62c to your computer and use it in GitHub Desktop.
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
module.exports.StockService = function (rootUrl) { | |
this.rootUrl = rootUrl + "/Stock/"; | |
}; | |
module.exports.StockService.prototype.getStockInfo = function (articleId) { | |
let url = this.rootUrl + "Info"; | |
return get(url, { | |
articleId: articleId | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment