|
@@ -42,7 +42,15 @@ public class DefaultWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter {
|
|
@Bean
|
|
@Bean
|
|
public RequestPermissionInterceptor getRequestPermissionInterceptor() {
|
|
public RequestPermissionInterceptor getRequestPermissionInterceptor() {
|
|
String[] exclusions = new String[]{".*login.*", ".*\\[getLoginUser\\].*",
|
|
String[] exclusions = new String[]{".*login.*", ".*\\[getLoginUser\\].*",
|
|
- RegExpUtil.escape("[${app.api.root}/org]:[/download]:[GET]")};
|
|
|
|
|
|
+ RegExpUtil.escape("[${app.api.root}/org]:[/download]:[GET]"),
|
|
|
|
+ RegExpUtil.escape("[${app.api.root}/course]:[/download]:[GET]"),
|
|
|
|
+ RegExpUtil.escape("[${app.api.root}/course]:[]:[GET]"),
|
|
|
|
+ RegExpUtil.escape("[${app.api.root}/org]:[/{id}]:[GET]"),
|
|
|
|
+ RegExpUtil.escape("[${app.api.root}/org]:[/all]:[GET]"),
|
|
|
|
+ RegExpUtil.escape("[${app.api.root}/student]:[/{id}]:[GET]"),
|
|
|
|
+ RegExpUtil.escape("[${app.api.root}/studentFaceInfo]:[/identityNumber]:[GET]"),
|
|
|
|
+ RegExpUtil.escape("[${app.api.root}/user]:[/{id}]:[GET]")};
|
|
|
|
+
|
|
return new RequestPermissionInterceptor(redisClient, exclusions) {
|
|
return new RequestPermissionInterceptor(redisClient, exclusions) {
|
|
|
|
|
|
@Override
|
|
@Override
|