PeerTube/shared/extra-utils/server/debug.ts

20 lines
428 B
TypeScript
Raw Normal View History

2021-02-18 14:44:12 +01:00
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
}