From 69aeb7889ac136a8e4fbe7de1330298e30345479 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Wed, 22 Oct 2025 13:59:12 +0400 Subject: feat/frontend: switch to vite, update node to v22 (#281) --- frontend/src/api/User.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/api/User.ts') diff --git a/frontend/src/api/User.ts b/frontend/src/api/User.ts index 88da0f2..995902c 100644 --- a/frontend/src/api/User.ts +++ b/frontend/src/api/User.ts @@ -8,7 +8,7 @@ export const get_user = async (user_id: string): Promise => { }; export const get_profile = async (token: string): Promise => { - const response = await axios.get(url(`profile`), { + const response = await axios.get(url("profile"), { headers: { "Authorization": token, } @@ -17,7 +17,7 @@ export const get_profile = async (token: string): Promise => { }; export const post_profile = async (token: string) => { - const _ = await axios.post(url(`profile`), {}, { + await axios.post(url("profile"), {}, { headers: { "Authorization": token, } -- cgit v1.2.3