crossorigin 우선 추가

This commit is contained in:
hyojun.choi 2024-08-14 15:45:13 +09:00
parent ef1a120e2f
commit 963f0b05b8
2 changed files with 3 additions and 0 deletions

View File

@ -4,12 +4,14 @@ 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;

View File

@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.*;
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/trestle")
@CrossOrigin
public class TrestleController {
private final TrestleService trestleService;