Skip to content

Commit

Permalink
feat: add HelloFriendController for root route
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwwinter committed Apr 17, 2024
1 parent 09f70c7 commit 35f39e5
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.runApplication
import org.springframework.scheduling.annotation.EnableScheduling
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@SpringBootApplication
@ConfigurationPropertiesScan
Expand All @@ -13,3 +15,12 @@ class Application
fun main(args: Array<String>) {
runApplication<Application>(*args)
}

@RestController
class HelloFriendController {
@GetMapping("/")
@Suppress("FunctionOnlyReturningConstant")
fun helloFriend(): String {
return "Hello, Friend. This is aam-backend-service."
}
}

0 comments on commit 35f39e5

Please sign in to comment.