Add hostname to session JSON output

This commit is contained in:
Ryan Cavicchioni 2024-07-05 16:06:15 -05:00
parent 1262f37b99
commit 5aeb90a18d
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

4
app.rb
View File

@ -329,7 +329,9 @@ post "/session" do
end end
get "/session" do get "/session" do
json session.to_hash j = session.to_hash
j[:hostname] = ENV['HOSTNAME']
json j
end end
get "/cookies" do get "/cookies" do