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.

22 lines
342 B
Python

import os
from flask import Flask
from flask_cors import CORS
app = Flask(__name__)
cors = CORS(app)
__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)