19 lines
477 B
Kotlin
19 lines
477 B
Kotlin
package org.hydev
|
|
|
|
import com.asyncapi.kotlinasyncapi.context.service.AsyncApiExtension
|
|
import com.asyncapi.kotlinasyncapi.ktor.AsyncApiPlugin
|
|
import io.ktor.server.application.*
|
|
import io.ktor.server.response.*
|
|
import io.ktor.server.routing.*
|
|
|
|
fun Application.configureHTTP() {
|
|
install(AsyncApiPlugin) {
|
|
extension = AsyncApiExtension.builder {
|
|
info {
|
|
title("Sample API")
|
|
version("1.0.0")
|
|
}
|
|
}
|
|
}
|
|
}
|