- Make email required
- Add basic navidrome/subsonic connection
- Tidy up request/response structure in backend
- Tidy Settings page
This commit is contained in:
Daniel Mason 2021-04-10 09:49:32 +12:00
parent 8294791abe
commit 48a99b31fd
Signed by: idanoo
GPG key ID: 387387CDBC02F132
15 changed files with 402 additions and 87 deletions

View file

@ -281,6 +281,26 @@ export const spotifyDisonnectionRequest = () => {
});
}
export const navidromeConnectionRequest = (values) => {
return axios.post(process.env.REACT_APP_API_URL + "user/navidrome", values, { headers: getHeaders() })
.then((data) => {
toast.success(data.data.message);
return true
}).catch((error) => {
return handleErrorResp(error)
});
};
export const navidromeDisonnectionRequest = () => {
return axios.delete(process.env.REACT_APP_API_URL + "user/navidrome", { headers: getHeaders() })
.then((data) => {
toast.success(data.data.message);
return true
}).catch((error) => {
return handleErrorResp(error)
});
}
export const getServerInfo = () => {
return axios.get(process.env.REACT_APP_API_URL + "serverinfo")