2
1

overviews.ts 354 B

123456789101112131415161718
  1. import { makeGetRequest } from '../requests/requests'
  2. function getVideosOverview (url: string, useCache = false) {
  3. const path = '/api/v1/overviews/videos'
  4. const query = {
  5. t: useCache ? undefined : new Date().getTime()
  6. }
  7. return makeGetRequest({
  8. url,
  9. path,
  10. query,
  11. statusCodeExpected: 200
  12. })
  13. }
  14. export { getVideosOverview }