94565d52bb
Because they need dev dependencies
22 lines
414 B
TypeScript
22 lines
414 B
TypeScript
import { makeGetRequest } from '../requests/requests'
|
|
|
|
function getStats (url: string, useCache = false) {
|
|
const path = '/api/v1/server/stats'
|
|
|
|
const query = {
|
|
t: useCache ? undefined : new Date().getTime()
|
|
}
|
|
|
|
return makeGetRequest({
|
|
url,
|
|
path,
|
|
query,
|
|
statusCodeExpected: 200
|
|
})
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
export {
|
|
getStats
|
|
}
|