Skip to content

Commit b97af3a

Browse files
author
andres
committed
Updated Annotation Controller
1 parent 9616c98 commit b97af3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/api/rest/v1/controllers/ProductoController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import org.springframework.data.domain.Pageable;
88
import org.springframework.http.HttpStatus;
99
import org.springframework.http.ResponseEntity;
10+
import org.springframework.web.bind.annotation.CrossOrigin;
1011
import org.springframework.web.bind.annotation.DeleteMapping;
1112
import org.springframework.web.bind.annotation.GetMapping;
1213
import org.springframework.web.bind.annotation.PathVariable;
@@ -26,6 +27,7 @@
2627

2728
@RestController
2829
@RequestMapping("/v1/productos")
30+
@CrossOrigin()
2931
public class ProductoController {
3032

3133
@Autowired

0 commit comments

Comments
 (0)