mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 00:30:02 +00:00
96c89662ec
Implement SystemEndpoint
13 lines
292 B
Kotlin
13 lines
292 B
Kotlin
package de.grimsi.gameyfin.system
|
|
|
|
import org.springframework.cloud.context.restart.RestartEndpoint
|
|
import org.springframework.stereotype.Service
|
|
|
|
@Service
|
|
class SystemService(
|
|
private val restartEndpoint: RestartEndpoint,
|
|
) {
|
|
fun restart() {
|
|
restartEndpoint.restart()
|
|
}
|
|
} |