Skip to content

Commit

Permalink
refactor: 출석 컨트롤러 API명 변경
Browse files Browse the repository at this point in the history
- member, admin으로 나누지 않고 하나로 통합
- security 설정 변경
- Controller 파일명 변경

refactor: 출석 컨트롤러 API명 변경
  • Loading branch information
gikhoon committed Aug 1, 2024
1 parent d16d54d commit d2a74ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("/v2/api/attendance/admin")
public class AttendanceAdminController {
@RequestMapping("/v2/api/attendance")
public class AttendanceController {

private final AttendanceAdminService attendanceAdminService;

@Operation(summary = "출석 정보 변경 API")
@PatchMapping("/update")
@PatchMapping()
public ResponseEntity<Void> updateAttendance(@RequestBody @Valid UpdateAttendanceRequest request) {
attendanceAdminService.updateAttendance(request);
return ResponseEntity.noContent().build();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers("/v1/api/session/cs-on").hasAnyRole("EDUCATION", "ADMIN")
.requestMatchers(new AntPathRequestMatcher("/v1/api/session", "GET")).authenticated()
.requestMatchers("/v1/api/session/**").hasAnyRole("ADMIN")
.requestMatchers("/v2/api/attendance/admin/**").hasAnyRole("ADMIN")
.requestMatchers("/v2/api/attendance/records").hasAnyRole("ADMIN")
.requestMatchers("/v2/api/attendance").hasAnyRole("ADMIN")
.requestMatchers(new AntPathRequestMatcher("/v1/api/socket/token", "POST"))
.hasAnyRole("MEMBER", "EDUCATION", "ADMIN")
.requestMatchers("/v1/api/socket/**").hasAnyRole("EDUCATION", "ADMIN")
Expand Down

0 comments on commit d2a74ad

Please sign in to comment.