Skip to content

Commit

Permalink
fix: Health Check
Browse files Browse the repository at this point in the history
  • Loading branch information
h-beeen committed Mar 18, 2024
1 parent abd5688 commit d0cf131
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class CustomRequestMatcher {

fun authEndpoints(): RequestMatcher {
return OrRequestMatcher(
AntPathRequestMatcher("/"),
AntPathRequestMatcher("/api/v1/oauth/**")
)
}
Expand Down
14 changes: 14 additions & 0 deletions src/main/kotlin/com/vacgom/backend/global/view/HomeController.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.vacgom.backend.global.view

import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class HomeController {

@GetMapping("/")
fun getHomePage(): ResponseEntity<Unit> {
return ResponseEntity.ok().build()
}
}

0 comments on commit d0cf131

Please sign in to comment.