Support HTML5-routed dapps (#4173)

This commit is contained in:
Tomasz Drwięga
2017-01-16 10:49:27 +01:00
committed by Gav Wood
parent 1d618faaa6
commit 76daf50876
3 changed files with 32 additions and 8 deletions

View File

@@ -38,6 +38,7 @@ pub const RPC_PATH: &'static str = "rpc";
pub const API_PATH: &'static str = "api";
pub const UTILS_PATH: &'static str = "parity-utils";
pub const WEB_PATH: &'static str = "web";
pub const URL_REFERER: &'static str = "__referer=";
pub fn utils() -> Box<Endpoint> {
Box::new(PageEndpoint::with_prefix(parity_ui::App::default(), UTILS_PATH.to_owned()))