fix: menu and routing

This commit is contained in:
2026-03-30 16:39:14 +02:00
parent 68f4850445
commit 91c5de1f67
18 changed files with 728 additions and 228 deletions

View File

@@ -3,9 +3,7 @@ import type { MenuItem, Route } from "@/types/menu";
export const getMenu = async () => {
const resp = await useFetchJson<MenuItem>('/api/v1/restricted/menu/get-menu');
return resp.items.children
}
@@ -13,5 +11,4 @@ export const getRoutes = async () => {
const resp = await useFetchJson<Route[]>('/api/v1/public/menu/get-routes');
return resp.items
}