redesign user data api

This commit is contained in:
isUnknown 2024-10-28 15:33:52 +01:00
parent f132049948
commit 44361e614d
17 changed files with 80 additions and 52 deletions

View file

@ -14,8 +14,8 @@ export const useProjectsStore = defineStore("projects", () => {
const api = useApiStore();
api
.fetchPageData("projects")
.then((json) => (projects.value = json.children));
.fetchData("projects")
.then((json) => (projects.value = json.page.children));
return { projects, currentProjects, archivedProjects };
});