From ee6ab322bef30e676fe4eda592705178457a6573 Mon Sep 17 00:00:00 2001 From: Spark Date: Fri, 17 Mar 2023 17:09:37 +0800 Subject: [PATCH] update version --- Cargo.lock | 2 +- Cargo.toml | 2 +- install.sh | 2 +- src/lib.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6b30b6b..f8a5495 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -229,7 +229,7 @@ dependencies = [ [[package]] name = "btcdomain_resolver" -version = "0.1.1" +version = "0.1.2" dependencies = [ "axum", "chrono", diff --git a/Cargo.toml b/Cargo.toml index dce2fb6..abbba0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "btcdomain_resolver" -version = "0.1.1" +version = "0.1.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/install.sh b/install.sh index 765e09c..ea2069e 100755 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ docker start ${image_name} export RUST_LOG=info export database=mysql://root:$pwd@localhost:$port/domain_inscription_data -wget https://github.com/btcdomain/btcdomain_resolver/releases/download/v0.1.0/btcdomain_resolver +wget https://github.com/btcdomain/btcdomain_resolver/releases/download/v0.1.2/btcdomain_resolver chmod +x btcdomain_resolver diff --git a/src/lib.rs b/src/lib.rs index 00c9ccc..c7e3ce9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -33,8 +33,8 @@ pub async fn main() { .allow_headers(Any) .allow_origin(Any); let router = Router::new() - .route("/api/domain/:domain", get(resolve_domain)) - .route("/api/address/:address", get(resolve_address)) + .route("/open_api/domain/:domain", get(resolve_domain)) + .route("/open_api/address/:address", get(resolve_address)) .layer(cors.clone());