From 599108b21979039117ffe1de1817e71644a20fb4 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 12 Mar 2021 08:55:40 +0100 Subject: cleaner endpoint names --- components/preferencesContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components') diff --git a/components/preferencesContext.tsx b/components/preferencesContext.tsx index f7bc409..3a930af 100644 --- a/components/preferencesContext.tsx +++ b/components/preferencesContext.tsx @@ -47,7 +47,7 @@ export function PreferencesContextWrapper(props: { children?: ReactNode }) { applyPreferences(prefs); axios.request({ method: "post", - url: `/api/user/updatePreferences`, + url: `/api/user/preferences`, headers: {"content-type": "application/json"}, data: { "newPreferences": prefs } }); -- cgit v1.2.3