diff --git a/bin/server/src/main.rs b/bin/server/src/main.rs index 56e74e2..0bbab9a 100644 --- a/bin/server/src/main.rs +++ b/bin/server/src/main.rs @@ -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]) + } diff --git a/routes/tests/registry.rs b/routes/tests/registry.rs index 85a2218..16d3937 100644 --- a/routes/tests/registry.rs +++ b/routes/tests/registry.rs @@ -19,6 +19,7 @@ use rocket::{ routes, }; use routes::registry::registry; + use shared::chaindata::get_para; use types::{Parachain, RelayChain::*}; @@ -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);