aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/src/services/client.ts
blob: 5ee25a6a94f47cc880e5f23680f4ddbc9203d71e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

import { getCurrentUser } from '@nextcloud/auth'
import { davGetClient } from '@nextcloud/files'

// init webdav client
export const rootPath = `/trashbin/${getCurrentUser()?.uid}/trash`

export const client = davGetClient()