use axum::{response::IntoResponse, Json}; /// This is the index page for the REST service. It lists all the available endpoints. /// /// TODO: Dynamically generate this list if possible. pub async fn index() -> impl IntoResponse { Json([ "/live", "/ready", "/api/price_feed_ids", "/api/latest_price_feeds?ids[]=&ids[]=&..(&verbose=true)(&binary=true)", "/api/latest_vaas?ids[]=&ids[]=&...", "/api/get_price_feed?id=&publish_time=(&verbose=true)(&binary=true)", "/api/get_vaa?id=&publish_time=", "/api/get_vaa_ccip?data=<0x+>", "/v2/updates/price/latest?ids[]=&ids[]=&..(&encoding=hex|base64)(&parsed=false)", "/v2/updates/price/stream?ids[]=&ids[]=&..(&encoding=hex|base64)(&parsed=false)(&allow_unordered=false)(&benchmarks_only=false)", "/v2/updates/price/?ids[]=&ids[]=&..(&encoding=hex|base64)(&parsed=false)", "/v2/price_feeds?(query=btc)(&asset_type=crypto|equity|fx|metal|rates)", ]) }