瀏覽代碼

feat(api): expand index route responses with additional endpoints

Daniel Chew 8 月之前
父節點
當前提交
f3f80244bd
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      apps/argus/src/api/index.rs

+ 8 - 1
apps/argus/src/api/index.rs

@@ -4,5 +4,12 @@ use axum::{response::IntoResponse, Json};
 ///
 /// TODO: Dynamically generate this list if possible.
 pub async fn index() -> impl IntoResponse {
-    Json(["/v1/chains", "/v1/chains/:chain_id/revelations/:sequence"])
+    Json([
+        "/",
+        "/live",
+        "/metrics",
+        "/ready",
+        "/v1/chains",
+        "/v1/chains/:chain_id/price-updates/:sequence"
+    ])
 }