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.
21 lines
341 B
Python
21 lines
341 B
Python
3 years ago
|
import os
|
||
|
from flask import Flask
|
||
3 years ago
|
from flask_cors import CORS
|
||
3 years ago
|
|
||
|
app = Flask(__name__)
|
||
3 years ago
|
cors = CORS(app)
|
||
3 years ago
|
|
||
|
__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)
|