mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-16 21:34:58 +00:00
Aligned user preference endpoints in style and behaviour
Changes their endpoints and remove the user id from the URLs. Simplifies list changes to share a single endpoint, which aligns it to the behaviour of the existing sort preference endpoint. Also added test to ensure user preferences are deleted on user delete.
This commit is contained in:
parent
24a7e8500d
commit
a3fcc98d6e
16 changed files with 89 additions and 88 deletions
resources/js/components
|
@ -73,7 +73,7 @@ class CodeEditor {
|
|||
isFavorite ? this.favourites.add(language) : this.favourites.delete(language);
|
||||
button.setAttribute('data-favourite', isFavorite ? 'true' : 'false');
|
||||
|
||||
window.$http.patch('/settings/users/update-code-language-favourite', {
|
||||
window.$http.patch('/preferences/update-code-language-favourite', {
|
||||
language: language,
|
||||
active: isFavorite
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue