From 0baaecfd88c1b9eb7c7dedcf1d5987629b83b5e8 Mon Sep 17 00:00:00 2001 From: Will Freeman Date: Sat, 30 Nov 2024 16:32:34 -0700 Subject: [PATCH] add HEAD for healthcheck --- .gitignore | 1 + shotgun/.bsp/sbt.json | 1 - shotgun/src/main/scala/me/deflock/shotgun/ShotgunServer.scala | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 shotgun/.bsp/sbt.json diff --git a/.gitignore b/.gitignore index 7d3e0f0..4e34a40 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ coverage .vscode/* !.vscode/extensions.json .idea +.bsp/ *.suo *.ntvs* *.njsproj diff --git a/shotgun/.bsp/sbt.json b/shotgun/.bsp/sbt.json deleted file mode 100644 index b7bca3d..0000000 --- a/shotgun/.bsp/sbt.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"sbt","version":"1.9.1","bspVersion":"2.1.0-M1","languages":["scala"],"argv":["/Users/willfreeman/Library/Caches/Coursier/arc/https/github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.10%252B7/OpenJDK17U-jdk_x64_mac_hotspot_17.0.10_7.tar.gz/jdk-17.0.10+7/Contents/Home/bin/java","-Xms100m","-Xmx100m","-classpath","/Users/willfreeman/Library/Caches/Coursier/arc/https/github.com/sbt/sbt/releases/download/v1.8.2/sbt-1.8.2.zip/sbt/bin/sbt-launch.jar","-Dsbt.script=/Users/willfreeman/Library/Caches/Coursier/arc/https/github.com/sbt/sbt/releases/download/v1.8.2/sbt-1.8.2.zip/sbt/bin/sbt","xsbt.boot.Boot","-bsp"]} \ No newline at end of file diff --git a/shotgun/src/main/scala/me/deflock/shotgun/ShotgunServer.scala b/shotgun/src/main/scala/me/deflock/shotgun/ShotgunServer.scala index a4cae11..bbbcb9b 100644 --- a/shotgun/src/main/scala/me/deflock/shotgun/ShotgunServer.scala +++ b/shotgun/src/main/scala/me/deflock/shotgun/ShotgunServer.scala @@ -83,6 +83,9 @@ object ShotgunServer { get { complete(HttpResponse(StatusCodes.OK, entity = "Service is healthy")) } + head { + complete(StatusCodes.OK) + } } ) }