|
|
|
@@ -1,7 +1,6 @@ |
|
|
|
package com.ffii.fpsms.modules.monitoring.web |
|
|
|
|
|
|
|
import com.ffii.fpsms.modules.monitoring.service.LabelPrinterMonitorService |
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty |
|
|
|
import org.springframework.http.ResponseEntity |
|
|
|
import org.springframework.web.bind.annotation.GetMapping |
|
|
|
import org.springframework.web.bind.annotation.PostMapping |
|
|
|
@@ -12,9 +11,9 @@ import java.time.LocalDate |
|
|
|
import java.time.LocalDateTime |
|
|
|
import java.time.format.DateTimeParseException |
|
|
|
|
|
|
|
/** Always registered so the monitor UI can probe label printers on demand (schedulers stay profile-gated). */ |
|
|
|
@RestController |
|
|
|
@RequestMapping("/label-printer-monitor") |
|
|
|
@ConditionalOnProperty(prefix = "fpsms.monitoring", name = ["enabled"], havingValue = "true") |
|
|
|
class LabelPrinterMonitorController( |
|
|
|
private val labelPrinterMonitorService: LabelPrinterMonitorService, |
|
|
|
) { |
|
|
|
|