Application.kt 381 B

1234567891011121314151617
  1. package ru.mephi
  2. import io.ktor.server.engine.*
  3. import io.ktor.server.netty.*
  4. import ru.mephi.plugins.*
  5. fun main() {
  6. embeddedServer(Netty, port = 8080, host = "0.0.0.0") {
  7. configureRouting()
  8. configureSecurity()
  9. configureHTTP()
  10. configureMonitoring()
  11. configureSerialization()
  12. configureAdministration()
  13. }.start(wait = true)
  14. }