1
0
Fork 0
peertube/server/tests/shared/requests.ts
2023-03-10 15:45:52 +01:00

12 lines
286 B
TypeScript

import { doRequest } from '@server/helpers/requests'
export function makePOSTAPRequest (url: string, body: any, httpSignature: any, headers: any) {
const options = {
method: 'POST' as 'POST',
json: body,
httpSignature,
headers
}
return doRequest(url, options)
}