makes /anything path variable not required
This commit is contained in:
@@ -63,7 +63,7 @@ public class HttpBinCompatibleController {
|
||||
}
|
||||
|
||||
@RequestMapping(path = "/anything/{anything}", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public Mono<Map<String, Object>> anything(ServerWebExchange exchange, @PathVariable String anything) {
|
||||
public Mono<Map<String, Object>> anything(ServerWebExchange exchange, @PathVariable(required = false) String anything) {
|
||||
return get(exchange);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user