From 6540e3ba43be85d541247e3c43980fa4d10ce16f Mon Sep 17 00:00:00 2001 From: jose-fully-ported <141160579+jose-fully-ported@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:07:09 -0400 Subject: [PATCH] feat: add an endpoint for printing the env --- web.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web.py b/web.py index 4bc8366..bfc9fd6 100644 --- a/web.py +++ b/web.py @@ -46,5 +46,14 @@ def index(path): return html, status_code +@app.route("/env") +def printenv(): + """ + prints the env as json + """ + +return os.environ + + if __name__ == "__main__": app.run()