Skip to content

Commit 33f8302

Browse files
authored
Add REWARD transfer method and allow GET /bank-account (#653)
1 parent ac740d1 commit 33f8302

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

  • api
  • profile/profile-app/src/main/kotlin/co/nilin/opex/profile/app/config
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package co.nilin.opex.api.core.inout
22

33
enum class TransferMethod {
4-
CARD, SHEBA, IPG, EXCHANGE , MANUALLY , VOUCHER, MPG
4+
CARD, SHEBA, IPG, EXCHANGE , MANUALLY , VOUCHER, MPG , REWARD
55
}

api/api-ports/api-binance-rest/src/main/kotlin/co/nilin/opex/api/ports/binance/config/SecurityConfig.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class SecurityConfig(
6464
.pathMatchers(HttpMethod.PUT, "/opex/v1/otc/rate").hasAnyAuthority("ROLE_admin", "ROLE_rate_bot")
6565
.pathMatchers(HttpMethod.GET, "/opex/v1/otc/**").permitAll()
6666
.pathMatchers("/opex/v1/otc/**").hasAuthority("ROLE_admin")
67+
.pathMatchers(HttpMethod.GET,"/opex/v1/bank-account").permitAll()
6768
.pathMatchers("/opex/v1/bank-account/**").hasAuthority("PERM_bank_account:write")
6869
.anyExchange().authenticated()
6970
}

profile/profile-app/src/main/kotlin/co/nilin/opex/profile/app/config/SecurityConfig.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class SecurityConfig {
2828
.authorizeExchange() {
2929
it.pathMatchers(HttpMethod.GET, "/admin/**").hasAnyAuthority("ROLE_monitoring", "ROLE_admin")
3030
.pathMatchers("/admin/**").hasAuthority("ROLE_admin")
31+
.pathMatchers(HttpMethod.GET,"/bank-account").permitAll()
3132
.pathMatchers("/bank-account/**").hasAuthority("PERM_bank_account:write")
3233
.pathMatchers("/actuator/**").permitAll()
3334
.anyExchange().authenticated()

0 commit comments

Comments
 (0)