1
0
Fork 0
peertube/shared/extra-utils/search/video-channels.ts

23 lines
463 B
TypeScript
Raw Normal View History

2018-08-24 05:04:02 -04:00
import { makeGetRequest } from '../requests/requests'
function searchVideoChannel (url: string, search: string, token?: string, statusCodeExpected = 200) {
const path = '/api/v1/search/video-channels'
return makeGetRequest({
url,
path,
query: {
sort: '-createdAt',
search
},
token,
statusCodeExpected
})
}
// ---------------------------------------------------------------------------
export {
searchVideoChannel
}