Use WebDAV to query for favorite Nodes
The WebDAV client to use for performing the request
Base path for the favorites, if unset all favorites are queried
The root path for the DAV user (defaults to defaultRootPath)
defaultRootPath
import { getClient, defaultRootPath, getFavoriteNodes } from '@nextcloud/files'const client = getClient()// query favorites for the rootconst favorites = await getFavoriteNodes(client)// which is the same as writing:const favorites = await getFavoriteNodes(client, '/', defaultRootPath) Copy
import { getClient, defaultRootPath, getFavoriteNodes } from '@nextcloud/files'const client = getClient()// query favorites for the rootconst favorites = await getFavoriteNodes(client)// which is the same as writing:const favorites = await getFavoriteNodes(client, '/', defaultRootPath)
Use WebDAV to query for favorite Nodes