diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-12 08:55:40 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-12 08:55:40 +0100 |
commit | 599108b21979039117ffe1de1817e71644a20fb4 (patch) | |
tree | 3a123627478a5280aeaf65910cbbe6b767f2987f /components/preferencesContext.tsx | |
parent | b34662346733ded378b31d8b1ba1e8b2953ec49a (diff) |
cleaner endpoint names
Diffstat (limited to 'components/preferencesContext.tsx')
-rw-r--r-- | components/preferencesContext.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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 } }); |