2020-08-21 09:01:02 +07:00
|
|
|
package com.cubetiqs.demo.axon
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication
|
|
|
|
import org.springframework.boot.runApplication
|
2020-08-21 09:35:31 +07:00
|
|
|
import org.springframework.http.ResponseEntity
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping
|
|
|
|
import org.springframework.web.bind.annotation.RestController
|
2020-08-21 09:01:02 +07:00
|
|
|
|
|
|
|
@SpringBootApplication
|
|
|
|
class AxonApplication
|
|
|
|
|
|
|
|
fun main(args: Array<String>) {
|
2020-08-21 10:55:40 +07:00
|
|
|
runApplication<AxonApplication>(*args)
|
2020-08-21 09:01:02 +07:00
|
|
|
}
|
2020-08-21 09:35:31 +07:00
|
|
|
|
|
|
|
@RestController
|
|
|
|
@RequestMapping
|
|
|
|
class DefaultController {
|
2020-08-21 10:55:40 +07:00
|
|
|
@GetMapping
|
|
|
|
fun index(): ResponseEntity<Any> {
|
|
|
|
return ResponseEntity.ok("ok")
|
|
|
|
}
|
2020-08-21 11:18:15 +07:00
|
|
|
}
|