From 9d7bc7f437b00538a427097c2e1fd3732cfea964 Mon Sep 17 00:00:00 2001 From: Matheus Fidelis Date: Fri, 4 Jul 2025 15:07:05 -0300 Subject: [PATCH] =?UTF-8?q?Endpoint=20de=20vers=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 2cfe635..1caef23 100644 --- a/main.py +++ b/main.py @@ -45,6 +45,10 @@ def health_check(): simulate_unhealthy_behavior_randomly() return {"status": "ok"} +@app.get("/version", tags=["util"]) +def version_check(): + """Verifica a versão da aplicação.""" + return {"version": "1.0.0"} @app.get("/liveness", tags=["k8s"]) def liveness_check():