aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/utils/overviews/overviews.ts
blob: 23e3ceb1ea7cb9b40c2e59a3e66eeca46a51814b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                            
import { makeGetRequest } from '../requests/requests'

function getVideosOverview (url: string, useCache = false) {
  const path = '/api/v1/overviews/videos'

  const query = {
    t: useCache ? undefined : new Date().getTime()
  }

  return makeGetRequest({
    url,
    path,
    query,
    statusCodeExpected: 200
  })
}

export { getVideosOverview }