diff options
author | HombreLaser <sebastian-440@live.com> | 2023-05-18 22:04:52 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-05-18 22:04:52 -0600 |
commit | 44a016256717b871ada858d5dc064d9d0e06425e (patch) | |
tree | 008bb13cc1b10355f335e24e46d0d74e85669364 /src/clients/api_client.ts | |
parent | 2cc3bd2a5ab71ced121ea6e8fef3be5db2b98e4f (diff) |
Añade creación de direcciones
Diffstat (limited to 'src/clients/api_client.ts')
-rw-r--r-- | src/clients/api_client.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/clients/api_client.ts b/src/clients/api_client.ts index 4362c4d..81ae482 100644 --- a/src/clients/api_client.ts +++ b/src/clients/api_client.ts @@ -54,6 +54,14 @@ export class ApiClient { return [product_response, product_reviews]; } + authorizationHeaders() { + return { + headers: { + Authorization: `Bearer ${this.token.get()}` + } + }; + } + private async makeGetRequest(request_url: string, headers?: object) { try { const response = await axios.get(request_url, headers); @@ -63,12 +71,4 @@ export class ApiClient { return error; } } - - private authorizationHeaders() { - return { - headers: { - Authorization: `Bearer ${this.token.get()}` - } - }; - } }
\ No newline at end of file |