From c916370e7a32164a426911905f401d52f029991e Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 1 Dec 2022 10:49:56 +0100 Subject: Use new endpoint to get my info --- app/src/store/modules/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/store/modules/auth.ts') diff --git a/app/src/store/modules/auth.ts b/app/src/store/modules/auth.ts index b3e72de..769a7de 100644 --- a/app/src/store/modules/auth.ts +++ b/app/src/store/modules/auth.ts @@ -73,7 +73,7 @@ const auth = { async getMe(context: AuthContext) { const api = context.rootState.api; - await fetch(`${api}/users/me`, { + await fetch(`${api}/users`, { method: "GET", headers: { "Content-Type": "application/json", -- cgit v1.2.3-18-g5258