Move docs and healthcheck at /* to /v1 /*
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user