commonMain.dev.programadorthi.routing.events.resources.EventResourcesConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of events-resources-jvm Show documentation
Show all versions of events-resources-jvm Show documentation
An extensible and multiplatform routing system powered by Ktor
The newest version!
package dev.programadorthi.routing.events.resources
import dev.programadorthi.routing.events.resources.serialization.EventResourcesFormat
import io.ktor.utils.io.KtorDsl
import kotlinx.serialization.modules.EmptySerializersModule
import kotlinx.serialization.modules.SerializersModule
/**
* Event Resources plugin instance.
*/
public class EventResourcesConfiguration(configuration: Configuration) {
/**
* The format instance used to (de)serialize resources instances
*/
public val resourcesFormat: EventResourcesFormat = EventResourcesFormat(configuration.serializersModule)
/**
* Configuration for the Resources plugin instance.
*/
@KtorDsl
public class Configuration {
/**
* [SerializersModule] used to (de)serialize the Resource instances.
*/
public var serializersModule: SerializersModule = EmptySerializersModule()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy