Skip to content

Commit

Permalink
test autre technique de redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
julg committed Feb 28, 2024
1 parent 641a492 commit 843be5e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class RedirectionController {

@GetMapping(value = "/test/{nntOuNumsujet}.xml")
public ResponseEntity<Object> redirectXML2(@PathVariable String nntOuNumsujet){
log.info("REDIRECTION");
HttpHeaders headers = new HttpHeaders();
headers.add("Location",URI.create(racine + "/api/v1/export/xml/" + nntOuNumsujet).toString());
return new ResponseEntity<>(headers, HttpStatus.MOVED_PERMANENTLY);
Expand Down

0 comments on commit 843be5e

Please sign in to comment.