aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server/debug.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/server/debug.ts')
-rw-r--r--shared/extra-utils/server/debug.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/shared/extra-utils/server/debug.ts b/shared/extra-utils/server/debug.ts
new file mode 100644
index 000000000..5cf80a5fb
--- /dev/null
+++ b/shared/extra-utils/server/debug.ts
@@ -0,0 +1,19 @@
1import { makeGetRequest } from '../requests/requests'
2import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes'
3
4function getDebug (url: string, token: string) {
5 const path = '/api/v1/server/debug'
6
7 return makeGetRequest({
8 url,
9 path,
10 token,
11 statusCodeExpected: HttpStatusCode.OK_200
12 })
13}
14
15// ---------------------------------------------------------------------------
16
17export {
18 getDebug
19}