group.rober.base.menu.controller.MenuController Maven / Gradle / Ivy
The newest version!
package group.rober.base.menu.controller;
import group.rober.base.menu.model.MenuEntry;
import group.rober.base.menu.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/base/menu")
public class MenuController {
@Autowired
private MenuService menuService;
@GetMapping("/userMenu")
public List getUserMenu(){
return menuService.getUserMenu();
}
}