Skip to content
Snippets Groups Projects
Commit efd08035 authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-6741 set default value for origin pattern

parent 07f0240e
No related branches found
No related tags found
1 merge request!3OZG-6741 enable cross origin for search organisationsEinheit endpoint
...@@ -54,7 +54,7 @@ class OrganisationsEinheitController { ...@@ -54,7 +54,7 @@ class OrganisationsEinheitController {
return ResponseEntity.of(Optional.of(service.getById(organisationsEinheitId)).map(assembler::toModel)); return ResponseEntity.of(Optional.of(service.getById(organisationsEinheitId)).map(assembler::toModel));
} }
@CrossOrigin(originPatterns = "${ozgcloud.domain.url-pattern}") @CrossOrigin(originPatterns = "${ozgcloud.domain.url-pattern:https://*.ozg-cloud.de}")
@GetMapping(params = { SEARCH_BY_PARAM }) @GetMapping(params = { SEARCH_BY_PARAM })
public CollectionModel<EntityModel<OrganisationsEinheitHeader>> search(@RequestParam String searchBy) { public CollectionModel<EntityModel<OrganisationsEinheitHeader>> search(@RequestParam String searchBy) {
return headerModelAssembler.toCollectionModel(service.searchOrganisationsEinheiten(searchBy).toList()); return headerModelAssembler.toCollectionModel(service.searchOrganisationsEinheiten(searchBy).toList());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment