- package ru.mephi.plugins
- import io.ktor.server.engine.*
- import io.ktor.application.*
- import io.ktor.response.*
- import io.ktor.request.*
- fun Application.configureAdministration() {
- install(ShutDownUrl.ApplicationCallFeature) {
- // The URL that will be intercepted (you can also use the application.conf's ktor.deployment.shutdown.url key)
- shutDownUrl = "/ktor/application/shutdown"
- // A function that will be executed to get the exit code of the process
- exitCodeSupplier = { 0 } // ApplicationCall.() -> Int
- }
- }
|