Change exclude url pattern for comment related api

pull/167/head
johnniang 2019-05-24 07:48:59 +08:00
parent caee1f77a3
commit 43438a0c75
2 changed files with 1 additions and 2 deletions

View File

@ -113,7 +113,7 @@ public class HaloConfiguration {
ApiAuthenticationFilter apiFilter = new ApiAuthenticationFilter(haloProperties, optionService); ApiAuthenticationFilter apiFilter = new ApiAuthenticationFilter(haloProperties, optionService);
apiFilter.addExcludeUrlPatterns( apiFilter.addExcludeUrlPatterns(
"/api/content/*/comments", "/api/content/*/comments",
"/api/content/**/comments/*" "/api/content/**/comments/**"
); );
DefaultAuthenticationFailureHandler failureHandler = new DefaultAuthenticationFailureHandler(); DefaultAuthenticationFailureHandler failureHandler = new DefaultAuthenticationFailureHandler();

View File

@ -97,7 +97,6 @@ public class PostController {
return postCommentService.convertTo(postComments); return postCommentService.convertTo(postComments);
} }
@GetMapping("{postId:\\d+}/comments/tree_view") @GetMapping("{postId:\\d+}/comments/tree_view")
@ApiOperation("Lists comments with tree view") @ApiOperation("Lists comments with tree view")
public Page<BaseCommentVO> listCommentsTree(@PathVariable("postId") Integer postId, public Page<BaseCommentVO> listCommentsTree(@PathVariable("postId") Integer postId,