// screenshot
MicroFrontendRegistry.add({
endpoint: "https://screenshoturl.open-apis.hax.cloud/api/screenshotUrl",
name: "@core/screenshotUrl",
title: "Screenshot page",
description: "Takes screenshot of a URL and returns image",
params: {
urlToCapture: "full url with https",
quality: "Optional image quality parameter"
}
});
// requires a POST with urlToCapture in the body
// quality is the qulity of the jpeg coming back