application configuration file

This commit is contained in:
nelle 2024-09-15 21:53:53 -06:00
parent 9003a6d59f
commit 528ac0273c

View file

@ -8,16 +8,13 @@ import io.ktor.client.plugins.auth.*
import io.ktor.client.plugins.auth.providers.* import io.ktor.client.plugins.auth.providers.*
import io.ktor.http.* import io.ktor.http.*
import io.ktor.server.application.* import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.netty.* import io.ktor.server.netty.*
import io.ktor.server.plugins.contentnegotiation.* import io.ktor.server.plugins.contentnegotiation.*
import io.ktor.server.plugins.cors.routing.* import io.ktor.server.plugins.cors.routing.*
import kotlinx.coroutines.runBlocking import kotlinx.coroutines.runBlocking
import observer.nelle.nelleObserverBackend.plugins.configureRouting import observer.nelle.nelleObserverBackend.plugins.configureRouting
fun main(args: Array<String>): Unit = fun main(args: Array<String>): Unit = EngineMain.main(args)
io.ktor.server.netty.EngineMain
.main(args)
fun Application.module() { fun Application.module() {
install(ContentNegotiation) install(ContentNegotiation)