Skip to content

Commit

Permalink
feat: add test endpoint for monitoring services
Browse files Browse the repository at this point in the history
  • Loading branch information
joewiz committed Jun 28, 2024
1 parent 4bafaf2 commit f152ef7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/test.xq
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
xquery version "3.1";

(:
A basic health check endpoint for monitoring services
:)

declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization";

declare option output:method "json";
declare option output:indent "yes";
declare option output:media-type "application/json";

map {
"status": "ok",
"time": current-dateTime()
}

0 comments on commit f152ef7

Please sign in to comment.