fix #349: add custom controller to retrieve core apps

This commit is contained in:
Simon Vieille
2025-05-04 18:24:32 +02:00
parent f58dedf553
commit cd4b3b1054
3 changed files with 81 additions and 7 deletions
+1 -4
View File
@@ -41,10 +41,7 @@ export const useNavStore = defineStore('nav', () => {
async function getCoreApps() {
if (coreApps == null) {
coreApps = await axios
.get(generateOcsUrl('core/navigation', 2) + '/apps?format=json')
.then((response) => response.data)
.then((value) => value.ocs.data)
coreApps = await await axios.get(generateUrl('/apps/side_menu/core/apps')).then((response) => response.data.items)
}
return coreApps