@hubspot/cms-lib
Advanced tools
Comparing version 2.1.1-beta.7 to 2.1.1-beta.8
const http = require('../http'); | ||
const FUNCTION_API_PATH = 'cms/v3/functions/function'; | ||
const FUNCTION_API_PATH = 'cms/v3/functions'; | ||
async function getFunctionByPath(portalId, functionPath) { | ||
return http.get(portalId, { | ||
uri: `${FUNCTION_API_PATH}/by-path/${functionPath}`, | ||
uri: `${FUNCTION_API_PATH}/function/by-path/${functionPath}`, | ||
}); | ||
} | ||
async function getRoutes(portalId) { | ||
return http.get(portalId, { | ||
uri: `${FUNCTION_API_PATH}/routes`, | ||
}); | ||
} | ||
module.exports = { | ||
getFunctionByPath, | ||
getRoutes, | ||
}; |
{ | ||
"name": "@hubspot/cms-lib", | ||
"version": "2.1.1-beta.7", | ||
"version": "2.1.1-beta.8", | ||
"description": "Library for working with the HubSpot CMS", | ||
@@ -34,3 +34,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "b6d766c32640096dbc163fe4554a049f9dd4e793" | ||
"gitHead": "f47853ac23af22419e88e373f856f86b5a37ee85" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277248
85
8899
158
29