Skip to content

Commit

Permalink
Refactor: 기타 컨트롤러 패키지 병합
Browse files Browse the repository at this point in the history
  • Loading branch information
tioon committed May 19, 2024
1 parent 6a347b8 commit fa46295
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,4 @@ public ResponseEntity<KakaoDto.Response> loginCallback(



@Operation(summary = "백엔드용 TEST API입니다. (사용X)")
@GetMapping("api/test")
@ResponseBody
public void test(HttpServletRequest request) {
//System.out.println(request.getAttribute("id"));
return;
}

}
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package com.web.baebaeBE.domain.healthcheck;
package com.web.baebaeBE.domain.other;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "Health Check", description = "헬스체크용 API")
public class HealthCheckController {
@Tag(name = "Other", description = "기타")
public class OtherController {

@GetMapping("/healthcheck")
@Operation(summary = "Health Check", description = "Load Balncer용 API입니다. (사용X)",
Expand All @@ -18,4 +20,18 @@ public class HealthCheckController {
public String healthCheck() {
return "OK"; // 서버가 정상적으로 작동 중임을 의미
}




@GetMapping("api/test")
@Operation(summary = "백엔드용 TEST API입니다. (사용X)")
@ResponseBody
public void test(HttpServletRequest request) {
//System.out.println(request.getAttribute("id"));
return;
}



}

0 comments on commit fa46295

Please sign in to comment.