commonMain.net.folivo.trixnity.clientserverapi.server.appserviceApiRoutes.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trixnity-clientserverapi-server Show documentation
Show all versions of trixnity-clientserverapi-server Show documentation
Multiplatform Kotlin SDK for matrix-protocol
The newest version!
package net.folivo.trixnity.clientserverapi.server
import io.ktor.server.routing.*
import kotlinx.serialization.json.Json
import net.folivo.trixnity.api.server.matrixEndpoint
import net.folivo.trixnity.core.serialization.events.EventContentSerializerMappings
internal fun Route.appserviceApiRoutes(
handler: AppserviceApiHandler,
json: Json,
contentMappings: EventContentSerializerMappings,
) {
matrixEndpoint(json, contentMappings, handler::ping)
}