From e78f46cf6a390bb4508f98d91f3117c9f0ef41be Mon Sep 17 00:00:00 2001 From: Swordsteel Date: Thu, 14 Nov 2024 13:05:18 +0100 Subject: [PATCH] add device data property --- src/main/kotlin/ltd/hlaeja/Application.kt | 2 ++ src/main/kotlin/ltd/hlaeja/property/DeviceDataProperty.kt | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 src/main/kotlin/ltd/hlaeja/property/DeviceDataProperty.kt diff --git a/src/main/kotlin/ltd/hlaeja/Application.kt b/src/main/kotlin/ltd/hlaeja/Application.kt index 2c6c4b1..94aa51b 100644 --- a/src/main/kotlin/ltd/hlaeja/Application.kt +++ b/src/main/kotlin/ltd/hlaeja/Application.kt @@ -1,5 +1,6 @@ package ltd.hlaeja +import ltd.hlaeja.property.DeviceDataProperty import ltd.hlaeja.property.DeviceRegistryProperty import ltd.hlaeja.property.JwtProperty import org.springframework.boot.autoconfigure.SpringBootApplication @@ -7,6 +8,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties import org.springframework.boot.runApplication @EnableConfigurationProperties( + DeviceDataProperty::class, DeviceRegistryProperty::class, JwtProperty::class, ) diff --git a/src/main/kotlin/ltd/hlaeja/property/DeviceDataProperty.kt b/src/main/kotlin/ltd/hlaeja/property/DeviceDataProperty.kt new file mode 100644 index 0000000..2d0370b --- /dev/null +++ b/src/main/kotlin/ltd/hlaeja/property/DeviceDataProperty.kt @@ -0,0 +1,8 @@ +package ltd.hlaeja.property + +import org.springframework.boot.context.properties.ConfigurationProperties + +@ConfigurationProperties(prefix = "device-data") +data class DeviceDataProperty( + val url: String, +)