client.ts 354 B

123456789101112
  1. /**
  2. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. import { getCurrentUser } from '@nextcloud/auth'
  6. import { davGetClient } from '@nextcloud/files'
  7. // init webdav client
  8. export const rootPath = `/trashbin/${getCurrentUser()?.uid}/trash`
  9. export const client = davGetClient()