Skip to content

Commit

Permalink
fix: route for endpoint /info
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Apr 11, 2024
1 parent e570b97 commit 42de8ad
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 128 deletions.
11 changes: 10 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 0 additions & 33 deletions mercury-server-deployment.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions mercury-server-service.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions nginx-deployment.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions nginx-service.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions server/src/endpoints/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub async fn validate_signature(pool: &sqlx::PgPool, signed_message_hex: &str, s
secp.verify_schnorr(&signed_message, &msg, &auth_key).is_ok()
}

#[get("/info/config", format = "json")]
#[get("/info/config")]
pub async fn info_config(statechain_entity: &State<StateChainEntity>) -> status::Custom<Json<Value>> {
let statechain_entity = statechain_entity.inner();

Expand All @@ -57,7 +57,7 @@ pub async fn info_config(statechain_entity: &State<StateChainEntity>) -> status:
return status::Custom(Status::Ok, Json(response_body));
}

#[get("/info/keylist", format = "json")]
#[get("/info/keylist")]
pub async fn info_keylist(statechain_entity: &State<StateChainEntity>) -> status::Custom<Json<Value>> {

let query = "\
Expand Down
31 changes: 0 additions & 31 deletions token-server-deployment.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions token-server-service.yaml

This file was deleted.

0 comments on commit 42de8ad

Please sign in to comment.