.route( "/r/sat/:sat_number/:page", get(Self::sat_inscriptions_paginated), ) .route( "/r/sat/:sat_number/at/:index", get(Self::sat_inscription_at_index), ) .route("/range/:start/:end", get(Self::range)) .route("/rare.txt", get(Self::rare_txt)) .route("/rune/:rune", get(Self::rune)) .route("/runes", get(Self::runes)) .route("/sat/:sat", get(Self::sat)) .route("/search", get(Self::search_by_query)) .route("/search/*query", get(Self::search_by_path)) .route("/static/*path", get(Self::static_asset)) .route("/status", get(Self::status)) .route("/tx/:txid", get(Self::transaction)) .layer(Extension(index)) .layer(Extension(page_config)) .layer(Extension(Arc::new(config))) .layer(SetResponseHeaderLayer::if_not_present( header::CONTENT_SECURITY_POLICY, HeaderValue::from_static("default-src 'self'"), )) .layer(SetResponseHeaderLayer::overriding(