Skip to content

Commit c008f58

Browse files
authored
Merge pull request #29 from alphagov/ACW-48/create-listView
Acw 48/create list view
2 parents 9cc57bf + 9ee3a35 commit c008f58

5 files changed

Lines changed: 444 additions & 12 deletions

File tree

app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ def visualisations_page():
6868
"""Serve a page listing all available visualisations."""
6969
return render_template("visualisations.html", visualisations=available_visualisations())
7070

71+
@app.route("/metrics", methods=["GET"])
72+
def metrics_page():
73+
"""Serve the React CDN sample metrics dashboard."""
74+
run_path_param = request.args.get("run_path", "")
75+
return render_template("metrics.html", run_path=run_path_param)
76+
7177
@app.route("/graph-viewmodel", methods=["GET"])
7278
async def graph_viewmodel():
7379
"""Serve the graph data as JSON for the frontend."""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies = [
1313
"s3fs>=0.4.2",
1414
"opensearch-py>=2.8.0",
1515
"requests-aws4auth>=1.3.1",
16-
"flask[async]==3.1.2",
16+
"flask[async]>=3.1.3",
1717
"uvicorn>=0.30.0",
1818
]
1919

0 commit comments

Comments
 (0)