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/Service.java | |
parent | 75b985391dc47d11edc87fee099a85dc30edd386 (diff) |
springfox -> springdoc
Diffstat (limited to 'src/main/java/com/juick/www/api/Service.java')
-rw-r--r-- | src/main/java/com/juick/www/api/Service.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/www/api/Service.java b/src/main/java/com/juick/www/api/Service.java index 67e2fd01..8b18b125 100644 --- a/src/main/java/com/juick/www/api/Service.java +++ b/src/main/java/com/juick/www/api/Service.java @@ -30,6 +30,7 @@ import com.juick.service.MessagesService; import com.juick.service.UserService; import com.juick.service.component.AccountVerificationEvent; import com.juick.service.security.annotation.Visitor; +import io.swagger.v3.oas.annotations.Hidden; import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.RandomStringUtils; @@ -47,7 +48,6 @@ import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.context.request.async.AsyncRequestTimeoutException; import org.springframework.web.servlet.mvc.method.annotation.SseEmitter; -import springfox.documentation.annotations.ApiIgnore; import javax.inject.Inject; import javax.mail.Session; @@ -85,7 +85,7 @@ public class Service { private final Session session = Session.getDefaultInstance(new Properties()); - @ApiIgnore + @Hidden @PostMapping("/api/mail") @ResponseStatus(value = HttpStatus.OK) public void processMail(@Visitor User current, InputStream data) throws Exception { @@ -178,7 +178,7 @@ public class Service { throw new HttpForbiddenException(); } } - @ApiIgnore + @Hidden @PostMapping("/api/mail/unsubscribe") @ResponseStatus(value = HttpStatus.OK) public void processMailUnsubscribe(@Visitor User current, InputStream data) throws Exception { |