Skip to content

Commit

Permalink
test then ship
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Reynolds committed Aug 21, 2024
1 parent ae5cf37 commit 371c0c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions base/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,18 @@ def main():

app = Flask(__name__)

@app.route('/')
def index():
"""Return a list of all API endpoints."""
endpoints = {}
for rule in app.url_map.iter_rules():
if rule.endpoint != 'static':
endpoints[rule.rule] = {
"methods": list(rule.methods),
"endpoint": rule.endpoint
}
return jsonify(endpoints)

@app.route('/status', methods=['GET'])
def status():
return jsonify({"status": "running"}), 200
Expand Down

0 comments on commit 371c0c0

Please sign in to comment.