aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/tests/src/shared/requests.ts
blob: fc70ad6ed954d39ce07cf48c4d4d28a5396df4d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { doRequest } from '@peertube/peertube-server/server/helpers/requests.js'

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)
}