Skip to content

Commit

Permalink
[FIX] 실패 응답 타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thguss committed Mar 20, 2024
1 parent 1236663 commit c1e583e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.fasterxml.jackson.databind.ObjectMapper;
import com.smeem.api.common.ApiResponseUtil;
import com.smeem.api.common.dto.SuccessResponse;
import com.smeem.api.common.dto.FailureResponse;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.http.MediaType;
Expand Down Expand Up @@ -32,7 +32,7 @@ private void setResponse(HttpServletResponse response) throws IOException {
response.getWriter().println(objectMapper.writeValueAsString(getFailureResponse()));
}

private ResponseEntity<SuccessResponse<?>> getFailureResponse() {
private ResponseEntity<FailureResponse> getFailureResponse() {
return ApiResponseUtil.failure(INVALID_TOKEN);
}
}

0 comments on commit c1e583e

Please sign in to comment.