aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/utils/server/stats.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/utils/server/stats.ts')
-rw-r--r--shared/utils/server/stats.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/shared/utils/server/stats.ts b/shared/utils/server/stats.ts
deleted file mode 100644
index 6f079ad18..000000000
--- a/shared/utils/server/stats.ts
+++ /dev/null
@@ -1,22 +0,0 @@
1import { makeGetRequest } from '../requests/requests'
2
3function getStats (url: string, useCache = false) {
4 const path = '/api/v1/server/stats'
5
6 const query = {
7 t: useCache ? undefined : new Date().getTime()
8 }
9
10 return makeGetRequest({
11 url,
12 path,
13 query,
14 statusCodeExpected: 200
15 })
16}
17
18// ---------------------------------------------------------------------------
19
20export {
21 getStats
22}