Skip to content

Commit

Permalink
Merge pull request #458 from HistoryAtState/add-test-endpoint
Browse files Browse the repository at this point in the history
Add internal test endpoint for monitoring services
  • Loading branch information
windauer authored Jun 28, 2024
2 parents 4bafaf2 + f152ef7 commit 971ade5
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 971ade5

Please sign in to comment.