generated from aura-ascend/template-service
Compare commits
2 Commits
de3e93cc0a
...
1721b426fd
| Author | SHA1 | Date | |
|---|---|---|---|
| 1721b426fd | |||
| 272d38f598 |
@@ -22,4 +22,4 @@ dependencies {
|
||||
}
|
||||
|
||||
group = "ltd.lulz"
|
||||
description = "service template"
|
||||
description = "device data service"
|
||||
|
||||
@@ -34,4 +34,4 @@ pluginManagement.repositories {
|
||||
gradlePluginPortal()
|
||||
}
|
||||
|
||||
rootProject.name = "service"
|
||||
rootProject.name = "device-data"
|
||||
|
||||
14
src/main/kotlin/ltd/lulz/controller/HomeController.kt
Normal file
14
src/main/kotlin/ltd/lulz/controller/HomeController.kt
Normal file
@@ -0,0 +1,14 @@
|
||||
package ltd.lulz.controller
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping
|
||||
import org.springframework.web.bind.annotation.RequestMapping
|
||||
import org.springframework.web.bind.annotation.RestController
|
||||
import reactor.core.publisher.Mono
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/")
|
||||
class HomeController {
|
||||
|
||||
@GetMapping
|
||||
fun home(): Mono<String> = Mono.just("Hello World")
|
||||
}
|
||||
Reference in New Issue
Block a user