Integrate old UI.

This commit is contained in:
Tomasz Drwięga
2017-09-05 11:21:18 +02:00
parent 9a62119a82
commit 0f8fb62581
1881 changed files with 175345 additions and 925 deletions

View File

@@ -77,6 +77,12 @@ pub fn all_endpoints<F: Fetch>(
// NOTE [ToDr] Dapps will be currently embeded on 8180
insert::<parity_ui::App>(&mut pages, "ui", Embeddable::Yes(embeddable.clone()), pool.clone());
// old version
{
let mut endpoint = PageEndpoint::new_safe_to_embed(parity_ui::old::App::default(), embeddable.clone());
endpoint.prefix = Some("v1".into());
pages.insert("v1".into(), Box::new(endpoint));
}
pages.insert("proxy".into(), ProxyPac::boxed(embeddable.clone(), dapps_domain.to_owned()));
pages.insert(WEB_PATH.into(), Web::boxed(embeddable.clone(), web_proxy_tokens.clone(), fetch.clone()));