1
0
Fork 0
peertube/shared/utils/overviews/overviews.ts

19 lines
354 B
TypeScript
Raw Normal View History

2018-08-30 08:58:00 -04:00
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 }