Language switching to its own endpoint

This commit is contained in:
totutotu
2019-04-11 14:46:12 +03:00
parent 602e006fff
commit 0801f76ac7
+1 -1
View File
@@ -10,7 +10,7 @@ const initial = () => ({
})
export const switchLanguage = (username, language) => {
const route = '/users/language'
const route = '/language'
const prefix = 'SWITCH_LANGUAGE_'
const data = { username, language }
const method = 'post'