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:
parent
1e2d1e4119
commit
f9fa18a8c1
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -101,7 +101,7 @@ def catch_all(path):
|
||||||
return "404 Not Found", 404
|
return "404 Not Found", 404
|
||||||
|
|
||||||
|
|
||||||
@app.route("/_metrics/")
|
@app.route("/metrics/")
|
||||||
def metrics():
|
def metrics():
|
||||||
finances = json.loads(
|
finances = json.loads(
|
||||||
(pathlib.Path(__file__).parent / "data" / "finances.json").read_text()
|
(pathlib.Path(__file__).parent / "data" / "finances.json").read_text()
|
||||||
|
|
Loading…
Reference in a new issue