add unified margin client with request types

This commit is contained in:
tiagosiebler
2022-09-10 18:57:48 +01:00
parent 1fd73f4d0e
commit 0cbdc5351c
8 changed files with 677 additions and 17 deletions

View File

@@ -270,7 +270,7 @@ export default abstract class BaseRestClient {
params?: any,
isPublicApi?: boolean
): Promise<any> {
// Sanity check to make sure it's only ever signed by
// Sanity check to make sure it's only ever prefixed by one forward slash
const requestUrl = [this.baseUrl, endpoint].join(
endpoint.startsWith('/') ? '' : '/'
);