mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-05-12 01:42:39 +00:00
13 lines
312 B
TypeScript
13 lines
312 B
TypeScript
import { doRequest } from '@peertube/peertube-server/core/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)
|
|
}
|