From c6d98c72ef209c757ced08fcd21010fc972c075c Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Sun, 28 Apr 2024 15:26:46 -0400 Subject: [PATCH] Add health check --- .../controller/HealthCheckController.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/com/mattrixwv/cipherstream/controller/HealthCheckController.java diff --git a/src/main/java/com/mattrixwv/cipherstream/controller/HealthCheckController.java b/src/main/java/com/mattrixwv/cipherstream/controller/HealthCheckController.java new file mode 100644 index 0000000..bd80632 --- /dev/null +++ b/src/main/java/com/mattrixwv/cipherstream/controller/HealthCheckController.java @@ -0,0 +1,18 @@ +package com.mattrixwv.cipherstream.controller; + + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + +import lombok.extern.slf4j.Slf4j; + + +@Slf4j +@Controller +public class HealthCheckController{ + @RequestMapping(value = "/health", method = RequestMethod.OPTIONS) + public void healthCheck(){ + log.debug("Health check"); + } +}