package com.interplug.qcast.biz.roofmaterial; import com.interplug.qcast.biz.roofmaterial.dto.RoofMaterialResponse; import java.util.List; import lombok.RequiredArgsConstructor; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequiredArgsConstructor @CrossOrigin @RequestMapping("/api/roof-material") public class RoofMaterialController { private final RoofMaterialService roofService; @GetMapping("/v1.0/roof-materials") public ResponseEntity> getRoofs() { return ResponseEntity.ok(roofService.getRoofMaterials()); } }