diff options
author | Vitaly Takmazov | 2020-12-07 18:32:27 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-12-07 18:33:10 +0300 |
commit | 8e9b670b272b8f030a1035cb7918e9fc0fea89a5 (patch) | |
tree | 79326bdfb119728a3dea37316c555ea2ca638a73 /src/main/java/com/juick/www/api/Index.java | |
parent | 75b985391dc47d11edc87fee099a85dc30edd386 (diff) |
springfox -> springdoc
Diffstat (limited to 'src/main/java/com/juick/www/api/Index.java')
-rw-r--r-- | src/main/java/com/juick/www/api/Index.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/api/Index.java b/src/main/java/com/juick/www/api/Index.java index 13807aaa..bafb6758 100644 --- a/src/main/java/com/juick/www/api/Index.java +++ b/src/main/java/com/juick/www/api/Index.java @@ -17,13 +17,13 @@ package com.juick.www.api; +import io.swagger.v3.oas.annotations.Hidden; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.servlet.support.ServletUriComponentsBuilder; -import springfox.documentation.annotations.ApiIgnore; import java.net.URI; @@ -33,7 +33,7 @@ import java.net.URI; @RestController public class Index { - @ApiIgnore + @Hidden @RequestMapping(value = { "/api/", "/ws/" }, method = RequestMethod.GET) public ResponseEntity<Void> description() { URI redirectUri = ServletUriComponentsBuilder.fromCurrentRequestUri().path("/swagger-ui.html").build().toUri(); |