Skip to content

Commit

Permalink
Merge pull request #24 from TG-WinG/feature/build
Browse files Browse the repository at this point in the history
feat: /api/health api 추가
  • Loading branch information
wwingyou authored Mar 25, 2024
2 parents 1c17c97 + a77e20a commit 17805b5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package JWTLogIn.JWT.etc.controller;

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

@RestController
@RequestMapping("/api")
public class HealthController {

@GetMapping("/health")
public String getHealth() {
return "OK";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ public class SecurityConfig {
"/swagger-ui/favicon-32x32.png",
"/swagger-ui/favicon-16x16.png",
"/api-docs/json/swagger-config",
"/api-docs/json"
"/api-docs/json",
/* public apis */
"/api/health"
};

@Bean
Expand Down

0 comments on commit 17805b5

Please sign in to comment.