node-magento2
Version:
Node JS library to connect to magento 2 API using promises
19 lines (16 loc) • 407 B
JavaScript
/**
* Magento 2 Promise API library
* File: lib/catalog.js
* We need to define "use strict", so we're doing it here.
*/
;
/**
* Continue with the main functionality.
*/
module.exports = function(service) {
return {
product: require('./catalog/product')(service),
category: require('./catalog/category')(service),
stockItem: require('./catalog/stockItem')(service)
}
}