Skip to content

Commit

Permalink
feat : healthtest cors (#16)
Browse files Browse the repository at this point in the history
(hotfix/cors)
  • Loading branch information
j2noo authored Aug 5, 2024
1 parent 576a082 commit 413968f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
import ai.softeer.caecae.global.dto.response.SuccessResponse;
import ai.softeer.caecae.global.enums.SuccessCode;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin(origins = "*")
public class HealthTestController {
@GetMapping("/api/health")
public ResponseEntity<SuccessResponse<String>> healthTest() {
return SuccessResponse.of(SuccessCode.OK, "Caecae Spring Server Health Test ~!");
return SuccessResponse.of(SuccessCode.OK, "Caecae Spring Server Health Test ~! with cors");
}
}

0 comments on commit 413968f

Please sign in to comment.