Move docs and healthcheck at /* to /v1 /*

This commit is contained in:
2026-07-16 02:36:08 -03:00
parent 6f98163632
commit eb94fb8e54
+3 -3
View File
@@ -9,8 +9,8 @@ pub mod v1;
pub fn router() -> Router<Arc<State>> {
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