makes /anything path variable not required

This commit is contained in:
Spencer Gibb
2018-04-02 12:52:21 -04:00
parent b61eaef266
commit ae0e7cc76e

View File

@@ -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);
}