Skip to content

Commit

Permalink
Merge pull request #47 from 1223v/swagger
Browse files Browse the repository at this point in the history
Fix: API path 변경
  • Loading branch information
1223v authored Jan 28, 2024
2 parents a9fae4a + 5121890 commit caf1b55
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ out/
### VS Code ###
.vscode/

application.properties
src/main/resources/application.properties
```
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// [PART 2]
//== URL별 권한 관리 옵션 ==//
.authorizeHttpRequests((authz) -> authz
.requestMatchers("/api/v1/user/join",
"/api/v1/user/#"
.requestMatchers("/v1/user/join",
"/v1/user/#"
).anonymous() // 로그인되지 않은 사용자만 접근 가능
.requestMatchers(
"/api/v1/jwt-test",
"/v1/jwt-test",
"/oauth2/**",
"/#",
"/api/v1/auth",
"/api/v1/sms/**"
"/v1/auth",
"/v1/sms/**"
).permitAll() // 해당 요청은 모두 허용

.requestMatchers("/swagger-ui/**", "/api/v1/api-docs/**", "/v3/api-docs/**",
.requestMatchers("/swagger-ui/**", "/v1/api-docs/**", "/v3/api-docs/**",
"/swagger-resources/**",
"/webjars/**").permitAll()
.anyRequest().authenticated() // 위를 제외한 나머지는 모두 인증이 필요
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@Log4j2
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1")
@RequestMapping("/v1")
public class CeoController {

private final CeoService ceoServiceImpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1")
@RequestMapping("/v1")
public class InventoryController {

private final InventoryService inventoryServiceImpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1")
@RequestMapping("/v1")
public class OrderController {

private final OrderService orderServiceImpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1")
@RequestMapping("/v1")
public class SaleController {

private final SaleService saleServiceImpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1")
@RequestMapping("/v1")
public class SmsController {

private final SmsService smsServiceImpl;
Expand Down

0 comments on commit caf1b55

Please # to comment.