Favorites => fhcApi

This commit is contained in:
cgfhtw
2024-05-21 10:53:23 +02:00
parent 1f45ddc17d
commit 17512e60b2
4 changed files with 102 additions and 10 deletions
+2
View File
@@ -1,7 +1,9 @@
import verband from './stv/verband.js';
import filter from './stv/filter.js';
import konto from './stv/konto.js';
export default {
verband,
filter,
konto,
configStudent() {
+15
View File
@@ -0,0 +1,15 @@
export default {
get() {
return this.$fhcApi.get('api/frontend/v1/stv/verband');
},
favorites: {
get() {
return this.$fhcApi.get('api/frontend/v1/stv/favorites');
},
set(favorites) {
return this.$fhcApi.post('api/frontend/v1/stv/favorites/set', {
favorites
});
}
}
}