]>
Commit | Line | Data |
---|---|---|
1 | import { doRequest } from '@server/helpers/requests' | |
2 | ||
3 | export function makePOSTAPRequest (url: string, body: any, httpSignature: any, headers: any) { | |
4 | const options = { | |
5 | method: 'POST' as 'POST', | |
6 | json: body, | |
7 | httpSignature, | |
8 | headers | |
9 | } | |
10 | ||
11 | return doRequest(url, options) | |
12 | } |