aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server/debug.ts
blob: 5cf80a5fb367874957c480644a9612628fbec601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { makeGetRequest } from '../requests/requests'
import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes'

function getDebug (url: string, token: string) {
  const path = '/api/v1/server/debug'

  return makeGetRequest({
    url,
    path,
    token,
    statusCodeExpected: HttpStatusCode.OK_200
  })
}

// ---------------------------------------------------------------------------

export {
  getDebug
}