Dockerisation.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.example.demo.exposition.debug
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping
|
||||
import org.springframework.web.bind.annotation.RequestMapping
|
||||
import org.springframework.web.bind.annotation.RestController
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/debug")
|
||||
class DebugController {
|
||||
@GetMapping("/info")
|
||||
fun debug(): String = """
|
||||
{
|
||||
"message": "Hello world!"
|
||||
}
|
||||
""".trimIndent()
|
||||
}
|
||||
Reference in New Issue
Block a user