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/ee/app/api-enterprise/server/canned-responses.js

10 lines
309 B

import { API } from '../../../../app/api/server';
import { findAllCannedResponses } from './lib/canned-responses';
API.v1.addRoute('canned-responses.get', { authRequired: true }, {
get() {
return API.v1.success({
responses: Promise.await(findAllCannedResponses({ userId: this.userId })),
});
},
});