Skip to content

Commit

Permalink
feat: add an endpoint for printing the env
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-fully-ported authored Oct 30, 2023
1 parent 5e9fdef commit 6540e3b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 6540e3b

Please sign in to comment.