diff --git a/src/etc/EtcController.kt b/src/etc/EtcController.kt index ffebce1..d49d9d0 100644 --- a/src/etc/EtcController.kt +++ b/src/etc/EtcController.kt @@ -39,5 +39,7 @@ class EtcController { EtcDao.Faq.select { EtcDao.Faq.id eq 1 } } + fun getTimeOnly() = Util.datetimeFormat(null) + data class OgpGet(val url: String?) } \ No newline at end of file diff --git a/src/etc/EtcRouter.kt b/src/etc/EtcRouter.kt index d666557..1e4075c 100644 --- a/src/etc/EtcRouter.kt +++ b/src/etc/EtcRouter.kt @@ -9,6 +9,13 @@ import org.koin.ktor.ext.inject object EtcRouter { fun Routing.index() { val controller: EtcController by inject() + + route("/test") { + get { + call.respond(controller.getTimeOnly()) + } + } + route("/") { get { call.respond(transaction { controller.getTime() }) @@ -37,4 +44,4 @@ object EtcRouter { } } } -} \ No newline at end of file +}