Browse Source

Remove obsolete code in Redirecting to a resource section

See gh-34103
Closes gh-36384

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
pull/36293/head
Tran Ngoc Nhan 1 month ago committed by Brian Clozel
parent
commit
7a85ce959b
  1. 1
      framework-docs/modules/ROOT/pages/web/webmvc-functional.adoc

1
framework-docs/modules/ROOT/pages/web/webmvc-functional.adoc

@ -836,7 +836,6 @@ Java::
[source,java,indent=0,subs="verbatim,quotes"] [source,java,indent=0,subs="verbatim,quotes"]
---- ----
ClassPathResource index = new ClassPathResource("static/index.html"); ClassPathResource index = new ClassPathResource("static/index.html");
List<String> extensions = List.of("js", "css", "ico", "png", "jpg", "gif");
RequestPredicate spaPredicate = path("/api/**").or(path("/error")).negate(); RequestPredicate spaPredicate = path("/api/**").or(path("/error")).negate();
RouterFunction<ServerResponse> redirectToIndex = route() RouterFunction<ServerResponse> redirectToIndex = route()
.resource(spaPredicate, index) .resource(spaPredicate, index)

Loading…
Cancel
Save