aboutsummaryrefslogtreecommitdiff
path: root/cgi/user.cgi
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2025-04-04 12:17:55 +0100
committerNat Lasseter <user@4574.co.uk>2025-04-04 12:17:55 +0100
commitbd7aa201c2abe5fade855a2c16b0829e4ba43a2d (patch)
tree292f7d501a857a150083b5c4584c09db92d1a1a8 /cgi/user.cgi
parent7c1cac868eaec5b6b8935503bbdff2463e374e30 (diff)
[bracket-api] return 404 if date doesn't exist
Diffstat (limited to 'cgi/user.cgi')
-rwxr-xr-xcgi/user.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgi/user.cgi b/cgi/user.cgi
index 535e580..b0a5017 100755
--- a/cgi/user.cgi
+++ b/cgi/user.cgi
@@ -93,5 +93,6 @@ when /^\/stuff-i-want/
page("Stuff I Want")
when /^\/bracket-api/
load "bracket-api.cgi"
- $cgi.out("application/json") { $pdata }
+ sts = $pdata == "null" ? "NOT_FOUND" : "OK"
+ $cgi.out("type" => "application/json", "status" => sts) { $pdata }
end