- Add registration_enabled to /api/v1/serverinfo
- Add config table caching on save
- Fix redis TTL not being parsed correctly
- Move registration enabled to backend toggle
- Fixed navbar when loading /u/profile URL
- Token now shows on user page + can reset
- Added basic popup validation to disconnect/reset buttons
This commit is contained in:
Daniel Mason 2021-04-03 13:54:07 +13:00
parent f8bd321fbc
commit 9cbb94fc56
Signed by: idanoo
GPG key ID: 387387CDBC02F132
21 changed files with 246 additions and 59 deletions

View file

@ -243,3 +243,21 @@ export const spotifyDisonnectionRequest = () => {
});
}
export const getServerInfo = () => {
return axios.get(process.env.REACT_APP_API_URL + "serverinfo")
.then((data) => {
return data.data
}).catch((error) => {
return handleErrorResp(error)
});
}
export const resetScrobbleToken = () => {
return axios.patch(process.env.REACT_APP_API_URL + "user", { token: "" }, { headers: getHeaders() })
.then((data) => {
return data.data
}).catch((error) => {
return handleErrorResp(error)
});
}