File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
eladmin-system/src/main/java/me/zhengjie/modules/security/rest Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 22
22
import lombok .RequiredArgsConstructor ;
23
23
import lombok .extern .slf4j .Slf4j ;
24
24
import me .zhengjie .annotation .Log ;
25
+ import me .zhengjie .annotation .rest .AnonymousDeleteMapping ;
25
26
import me .zhengjie .annotation .rest .AnonymousGetMapping ;
26
27
import me .zhengjie .annotation .rest .AnonymousPostMapping ;
27
28
import me .zhengjie .config .RsaProperties ;
@@ -140,7 +141,7 @@ public ResponseEntity<Object> getCode() {
140
141
}
141
142
142
143
@ ApiOperation ("退出登录" )
143
- @ DeleteMapping (value = "/logout" )
144
+ @ AnonymousDeleteMapping (value = "/logout" )
144
145
public ResponseEntity <Object > logout (HttpServletRequest request ) {
145
146
onlineUserService .logout (tokenProvider .getToken (request ));
146
147
return new ResponseEntity <>(HttpStatus .OK );
You can’t perform that action at this time.
0 commit comments