Executing Requests
Using the Umbraco HTTP Client
import { tryExecute } from '@umbraco-cms/backoffice/resources';
import { umbHttpClient } from '@umbraco-cms/backoffice/http-client';
const { data, error } = await tryExecute(this, umbHttpClient.get({
url: '/umbraco/management/api/v1/server/status'
}));
if (error) {
console.error('There was a problem with the fetch operation:', error);
} else {
console.log(data); // Do something with the data
}Disabling Notifications
Cancelling Requests
Last updated
Was this helpful?