aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/tests/shared/requests.ts
blob: 0cfeab7b2fd8844d0c084140af0c26c5c04e10b9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                    
 
                                                                                              
                   
                             




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