From 5e6d2e46d5770041676a25353ace4c49f15f6cc6 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 21 Mar 2018 09:08:59 +0300 Subject: ws: redirect when no upgrade header --- juick-server/src/main/java/com/juick/server/api/Index.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main/java/com') diff --git a/juick-server/src/main/java/com/juick/server/api/Index.java b/juick-server/src/main/java/com/juick/server/api/Index.java index be79bf98..eafde85b 100644 --- a/juick-server/src/main/java/com/juick/server/api/Index.java +++ b/juick-server/src/main/java/com/juick/server/api/Index.java @@ -44,7 +44,7 @@ public class Index { @Inject private XMPPServer xmpp; - @RequestMapping(value = "/", method = RequestMethod.GET, headers = "Connection!=Upgrade") + @RequestMapping(value = { "/", "/ws/" }, method = RequestMethod.GET, headers = "Connection!=Upgrade") public ResponseEntity description() { URI redirectUri = ServletUriComponentsBuilder.fromCurrentRequestUri().path("/swagger-ui.html").build().toUri(); return ResponseEntity.status(HttpStatus.MOVED_PERMANENTLY).location(redirectUri).build(); -- cgit v1.2.3