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

14 lines
346 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));
},
},
);