Skip to content

Commit

Permalink
feat/JNU-econovation#246 : Health Check
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangdaesun committed May 21, 2024
1 parent a30d1de commit 3563789
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.gaebaljip.exceed.health;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.gaebaljip.exceed.common.ApiResponse;
import com.gaebaljip.exceed.common.ApiResponseGenerator;

@RestController
@RequestMapping("/api")
public class HealthController {
@GetMapping("/health")
public ApiResponse<ApiResponse.CustomBody<Void>> health() {
return ApiResponseGenerator.success(HttpStatus.OK);
}
}

0 comments on commit 3563789

Please sign in to comment.