// Read-only sidebar nav tree (ERPCore Controllers/NavController.cs).
import { apiRequest } from "@/lib/api-client"
import { NavItem } from "@/types/rbac"

export const navApi = {
  tree(): Promise<NavItem[]> {
    return apiRequest<NavItem[]>("/nav")
  },
}
