package gc.mda.kcg.menu;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 메뉴 설정 API — auth_perm_tree 기반.
 */
@RestController
@RequiredArgsConstructor
public class MenuConfigController {

    private final MenuConfigService menuConfigService;

    @GetMapping("/api/menu-config")
    public List<MenuConfigDto> getMenuConfig() {
        return menuConfigService.getActiveMenuConfig();
    }
}
