Skip to content

Commit 2b8a7cc

Browse files
committed
Disable accessKey interceptor
1 parent 793f779 commit 2b8a7cc

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/kotlin/io/openfuture/api/config/WebMvcConfig.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class WebMvcConfig(
3131
.maxAge(3600)
3232
}
3333

34-
override fun addInterceptors(registry: InterceptorRegistry) {
34+
/*override fun addInterceptors(registry: InterceptorRegistry) {
3535
registry.addInterceptor(accessKeyInterceptor())
3636
}
3737
@@ -44,6 +44,6 @@ class WebMvcConfig(
4444
@Scope(value = WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.TARGET_CLASS)
4545
fun accessKeyHolder(): AccessKeyHolder {
4646
return AccessKeyHolder("")
47-
}
47+
}*/
4848

4949
}

src/main/kotlin/io/openfuture/api/controller/api/PublicHDWalletController.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import io.openfuture.api.entity.application.BlockchainType
55
import io.openfuture.api.service.ApplicationService
66
import io.openfuture.api.service.ApplicationWalletService
77
import io.openfuture.api.service.WalletApiService
8+
import org.springframework.security.access.prepost.PreAuthorize
89
import org.springframework.web.bind.annotation.*
910

1011
@RestController

0 commit comments

Comments
 (0)