add hostname helper
All checks were successful
Gitea Actions Demo / lint (push) Successful in 29s
Gitea Actions Demo / test (push) Successful in 34s
Gitea Actions Demo / release-image (push) Has been skipped

This commit is contained in:
Ryan Cavicchioni 2025-03-25 20:00:37 -05:00
parent 6f84053124
commit af9f89a7f5
Signed by: ryanc
SSH Key Fingerprint: SHA256:KbXiwUnZnHFwFtt3Bytd+F3FN9pPHn1Z1cxMIE1TPbg

4
app.rb
View File

@ -280,6 +280,10 @@ helpers do
@auth.credentials and @auth.credentials and
@auth.credentials == ["qwer", "asdf"] @auth.credentials == ["qwer", "asdf"]
end end
def hostname
ENV["HOSTNAME"]
end
end end
get "/" do get "/" do