Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] 관리자 권한 확인 API 수정 #275

Merged
merged 2 commits into from
Aug 9, 2024
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 @@ -93,7 +93,7 @@ public ResponseEntity<Void> loginEvent(
.build();
}

@GetMapping("/api/events/{eventId}/auth")
@PostMapping("/api/events/{eventId}/auth")
public ResponseEntity<Void> authenticate(@PathVariable("eventId") String token) {
return ResponseEntity.ok().build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ void findActions() throws Exception {
@Test
void authenticateTest() throws Exception {
String token = "TOKEN";
mockMvc.perform(get("/api/events/{eventId}/auth", token)
mockMvc.perform(post("/api/events/{eventId}/auth", token)
.cookie(EVENT_COOKIE))
.andDo(print())
.andExpect(status().isOk())
Expand Down
Loading