/pid route should return JSON
All checks were successful
Gitea Actions Demo / lint (push) Successful in 50s
Gitea Actions Demo / test (push) Successful in 17s
Gitea Actions Demo / docker (push) Successful in 2m6s

This commit is contained in:
Ryan Cavicchioni 2025-04-03 20:48:16 -05:00
parent 8667d0571f
commit 7831c5da16
Signed by: ryanc
SSH Key Fingerprint: SHA256:KbXiwUnZnHFwFtt3Bytd+F3FN9pPHn1Z1cxMIE1TPbg

2
app.rb
View File

@ -374,7 +374,7 @@ post "/halt" do
nil
end
get "/pid" do
get "/pid", provides: "json" do
pretty = params.key? :pretty
jsonify({ppid: ppid, pid: Process.pid}, pretty:)