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/apps/meteor/app/api/server/default/info.ts

31 lines
567 B

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