@ -209,6 +209,16 @@ before do
request.session_options[:skip] = !request.path_info.start_with?("/session")
end
helpers do
def json(obj, opts: nil, pretty: false)
if pretty
JSON.pretty_generate obj, opts:
else
JSON.generate(obj, opts:)
get "/" do
"hello there!\n"
The note is not visible to the blocked user.