Skip to content

Commit

Permalink
Merge pull request #4 from BoredApe8461/registry-query
Browse files Browse the repository at this point in the history
Registry query
  • Loading branch information
BoredApe8461 authored Aug 19, 2024
2 parents 11ba118 + b4aa2c3 commit 8937e13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ extern crate rocket;
fn rocket() -> _ {
rocket::build()
.attach(CorsOptions::default().to_cors().unwrap())

.mount("/", routes![consumption, register_para, registry, extend_subscription])

}
2 changes: 2 additions & 0 deletions routes/tests/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use rocket::{
routes,
};
use routes::registry::registry;

use shared::chaindata::get_para;
use types::{Parachain, RelayChain::*};

Expand All @@ -34,6 +35,7 @@ fn getting_registry_works() {
let response = client.get("/registry").dispatch();
assert_eq!(response.status(), Status::Ok);


let mut registry = parse_ok_response(response);
registry.sort_by_key(|p| p.para_id);

Expand Down

0 comments on commit 8937e13

Please sign in to comment.