1
0
Fork 0
peertube/shared/utils/overviews/overviews.ts
buoyantair 9639bd1757 Move utils to /shared
Move utils used by /server/tools/* & /server/tests/**/* into
/shared folder.

Issue: #1336
2018-10-29 22:18:31 +05:30

18 lines
354 B
TypeScript

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 }