From d138c15dcd4272cd2358d28867ef35d1550b39cd Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 15 May 2023 20:35:39 -0600 Subject: Mejora renderizado de formularios --- src/clients/api_client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/clients/api_client.ts') diff --git a/src/clients/api_client.ts b/src/clients/api_client.ts index 93d713a..4362c4d 100644 --- a/src/clients/api_client.ts +++ b/src/clients/api_client.ts @@ -39,9 +39,9 @@ export class ApiClient { async put(path: string, data: FormData) { const request_url = `${ this.url }${ path }`; const options = this.authorizationHeaders(); - const response = await axios.put(request_url, data, options); - return response; + const response = await axios.put(request_url, data, options); + return response } async getProduct(id: string) { @@ -67,7 +67,7 @@ export class ApiClient { private authorizationHeaders() { return { headers: { - Authorization: this.token.get() + Authorization: `Bearer ${this.token.get()}` } }; } -- cgit v1.2.3