You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
296 B
Python

import os
from flask import Flask
app = Flask(__name__)
__version__ = "1.0.0"
@app.route("/ping")
@app.route("/")
def pong():
"""A simple ping route."""
return {"message": "pong"}
@app.route("/env")
def env():
"""Exposes the environment variables."""
return dict(os.environ)