Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin")
@RequestMapping("/admin-api")
@RequiredArgsConstructor
public class AdminAuthController {

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/dev/admin/global/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers("/test/**").permitAll() // ✅ 여기를 추가!

.requestMatchers(
"/admin/login",
"/admin/logout",
"/admin-api/login",
"/admin-api/logout",
"/swagger-ui.html",
"/swagger-ui/**",
"/v3/api-docs/**"
).permitAll() .requestMatchers("/admin/me", "/admin-api/**").authenticated()
).permitAll() .requestMatchers("/admin-api/me", "/admin-api/**").authenticated()
.anyRequest().denyAll()
)
.sessionManagement(sess -> sess.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package dev.admin.transaction.enums;

public enum TransactionType {
DEPOSIT, WITHDRAW, CONVERT, PURCHASE, REFUND, RECEIVE
DEPOSIT, WITHDRAW, CONVERT, PURCHASE, REFUND, RECEIVE,AUTO_CONVERT
}