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/custom-sounds.js

26 lines
460 B

import { API } from '../api';
import { findCustomSounds } from '../lib/custom-sounds';
API.v1.addRoute(
'custom-sounds.list',
{ authRequired: true },
{
get() {
const { offset, count } = this.getPaginationItems();
const { sort, query } = this.parseJsonQuery();
return API.v1.success(
Promise.await(
findCustomSounds({
query,
pagination: {
offset,
count,
sort,
},
}),
),
);
},
},
);