mirror of https://github.com/halo-dev/halo
Change exclude url pattern for comment related api
parent
caee1f77a3
commit
43438a0c75
|
@ -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();
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue