Skip to content

Commit

Permalink
실리콘밸리 인턴십 때문에 테스트 api좀 만들겠습니다 ㅎㅎ;;
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhello0507 committed Jan 7, 2025
1 parent 7fed387 commit b738678
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/kotlin/com/ohayo/moyamoya/Test.kt

This file was deleted.

22 changes: 22 additions & 0 deletions src/main/kotlin/com/ohayo/moyamoya/TestController.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.ohayo.moyamoya

import mu.KLogger
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("test")
class TestController(
private val logger: KLogger
) {
@GetMapping
fun test(
@RequestParam param1: String,
): String {
val result = "Hello $param1"
logger.info(result)
return result
}
}

0 comments on commit b738678

Please sign in to comment.