Skip to content
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
@@ -0,0 +1,28 @@
package com.nowait.applicationadmin.aws.controller;

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

import com.nowait.common.api.ApiUtils;

import lombok.RequiredArgsConstructor;

@RestController
@RequestMapping("")
@RequiredArgsConstructor
public class healthCheckController {
@GetMapping("/health-check")
public ResponseEntity<?> healthCheck() {
return ResponseEntity
.status(HttpStatus.OK)
.body(
ApiUtils
.success(
"정상 작동 중입니다."
)
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
"/api-docs/**",
"/swagger-resources/**",
"/webjars/**",
"/demo-ui.html"
"/demo-ui.html",
"/health-check"
)
.permitAll()
.anyRequest().authenticated() // 그외 요청은 허가된 사람만 인가
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.nowait.applicationuser.aws.controller;

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

import com.nowait.common.api.ApiUtils;

import lombok.RequiredArgsConstructor;

@RestController
@RequestMapping("")
@RequiredArgsConstructor
public class healthCheckController {
@GetMapping("/health-check")
public ResponseEntity<?> healthCheck() {
return ResponseEntity
.status(HttpStatus.OK)
.body(
ApiUtils
.success(
"정상 작동 중입니다."
)
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
"/webjars/**",
"/demo-ui.html",
"/v1/menus/all-menus/stores/**",
"/nowait/management/**"
"/nowait/management/**",
"/health-check"
)
.permitAll()
.anyRequest().authenticated() // 그외 요청은 허가된 사람만 인가
Expand Down