Skip to content

Commit

Permalink
DATAGO-59780: Add CORS support to EMA REST Controllers (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmeldrum authored Aug 11, 2023
1 parent c7e3b55 commit 487f210
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.CrossOrigin;

@Slf4j
@Validated
@CrossOrigin
@RestController
@RequestMapping(RestEndpoint.DATA_COLLECTION_FILE_URL)
public class DataCollectionFileControllerImpl {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
Expand All @@ -26,6 +27,7 @@

@Slf4j
@Validated
@CrossOrigin
@RestController
@RequestMapping(RestEndpoint.MESSAGING_SERVICE_URL)
public class DataImportControllerImpl implements DataImportController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand All @@ -23,6 +24,7 @@

@Slf4j
@Validated
@CrossOrigin
@RestController
@RequestMapping(RestEndpoint.MESSAGING_SERVICE_URL)
public class EMAControllerImpl implements EMAController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
import org.springframework.data.domain.Pageable;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Validated
@CrossOrigin
@RestController
@RequestMapping(RestEndpoint.SCAN_URL)
public class ScanControllerImpl implements ScanController {
Expand Down

0 comments on commit 487f210

Please sign in to comment.