From 4164390e128342c83568d3eba8654895aefe1395 Mon Sep 17 00:00:00 2001 From: alexandersus Date: Wed, 31 Jul 2024 23:50:21 +0300 Subject: [PATCH] fix: add missed header --- src/queries/orders.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/queries/orders.ts b/src/queries/orders.ts index 976a4ead2..2e3083ad2 100644 --- a/src/queries/orders.ts +++ b/src/queries/orders.ts @@ -7,7 +7,11 @@ import { Order } from "~/models/Order"; export function useOrders() { return useQuery("orders", async () => { - const res = await axios.get(`${API_PATHS.order}/order`); + const res = await axios.get(`${API_PATHS.order}/order`, { + headers: { + Authorization: `Basic ${localStorage.getItem("authorization_token")}`, + }, + }); return res.data; }); }