Skip to content

Commit

Permalink
멘토 승인 엔드포인트 변경 (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
beomukim authored Nov 28, 2023
1 parent 05e3f90 commit 4bfcf6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

@Controller
@RequiredArgsConstructor
@RequestMapping("/api/v1/admin/applications")
@RequestMapping("/admin/applications")
public class MentorApplicationController {

private final MentorService mentorService;
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application-endpoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ endpoint:
delete: /api/v1/resumes/**
role: own_mentee
- matcher:
get: /api/v1/admin/**
post: /api/v1/admin/**
get: /admin/**
post: /admin/**
role: admin
ignores: /docs/**
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void SetUP() {
given(mentorApplicationService.getAll()).willReturn(List.of(mentorApplication));

// when
ResultActions result = mvc.perform(get("/api/v1/admin/applications"));
ResultActions result = mvc.perform(get("/admin/applications"));

// then
result.andExpect(status().isOk())
Expand Down Expand Up @@ -97,7 +97,7 @@ void SetUP() {
doNothing().when(emailService).sendEmail(any());

// when
ResultActions result = mvc.perform(MockMvcRequestBuilders.post("/api/v1/admin/applications/{applicationId}/approve", applicationId));
ResultActions result = mvc.perform(MockMvcRequestBuilders.post("/admin/applications/{applicationId}/approve", applicationId));

// then
result.andExpect(status().is3xxRedirection())
Expand Down

0 comments on commit 4bfcf6c

Please sign in to comment.