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/default/info.js

30 lines
495 B

import { API } from '../api';
import { getServerInfo } from '../lib/getServerInfo';
API.default.addRoute(
'info',
{ authRequired: false },
{
get() {
const user = this.getLoggedInUser();
return API.v1.success(Promise.await(getServerInfo(user?._id)));
},
},
);
API.default.addRoute(
'ecdh_proxy/initEncryptedSession',
{ authRequired: false },
{
post() {
return {
statusCode: 200,
body: {
success: false,
error: 'Not Acceptable',
},
};
},
},
);