I have a CC Task that implements the HTTP capability. There is a function that looks similar to the example,
export async function get({params, request, response}) {
return {hello: 'world'};}
I can call this through a view js:
view.text = "https://{some_url}.poweredbyjourney.com/ccTask"
and then using an HTML tag in the xml.
<html src="{text}" show-fullscreen-button="true"/>
My question is, how can I pass a parameter to the function and still obtain the webpage/request? For instance if I wanted the CC Task to be:
export async function get({params, request, response}) {
return {hello: params.message};
}
I have tried using fetch, however, it is receiving the response not the URL in view.text
.