Serialization.kt 264 B

1234567891011121314
  1. package ru.mephi.plugins
  2. import io.ktor.serialization.*
  3. import io.ktor.features.*
  4. import io.ktor.application.*
  5. import io.ktor.response.*
  6. import io.ktor.request.*
  7. fun Application.configureSerialization() {
  8. install(ContentNegotiation) {
  9. json()
  10. }
  11. }