aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/utils/search/video-channels.ts
blob: 0532134aeff6fd0a308228351e995456c0003fa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}