The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/api/server/v1/webdav.js

12 lines
274 B

import { API } from '../api';
import { findWebdavAccountsByUserId } from '../lib/webdav';
API.v1.addRoute(
'webdav.getMyAccounts',
{ authRequired: true },
{
get() {
return API.v1.success(Promise.await(findWebdavAccountsByUserId({ uid: this.userId })));
},
},
);