From eb94fb8e547c835c9338dcd9c665035e7c915e13 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Thu, 16 Jul 2026 02:36:08 -0300 Subject: [PATCH] Move docs and healthcheck at /* to /v1 /* --- src/handlers/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index e9f481e..ea90c0c 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -9,8 +9,8 @@ pub mod v1; pub fn router() -> Router> { Router::new() - .route("/", get(docs)) - .route("/healthcheck", get(healthcheck)) + .route("/v1/healthcheck", get(healthcheck)) + .route("/v1/docs", get(docs)) .nest("/v1", v1::router()) } @@ -33,7 +33,7 @@ async fn docs() -> &'static str { The current endpoints are: - GET /healthcheck + GET /v1/healthcheck Returns OK when the API is running. GET /v1/profile