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