fix: update metrics endpoint URL

Changed the metrics route from "/_metrics/" to "/metrics/" for consistency and better readability. This should enhance usability and clarity for users accessing the metrics endpoint.
This commit is contained in:
Kumi 2024-07-01 07:10:13 +02:00
parent 1e2d1e4119
commit f9fa18a8c1
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -101,7 +101,7 @@ def catch_all(path):
return "404 Not Found", 404
@app.route("/_metrics/")
@app.route("/metrics/")
def metrics():
finances = json.loads(
(pathlib.Path(__file__).parent / "data" / "finances.json").read_text()