Riparu problemojn por la konstruaĵo

This commit is contained in:
Savanni D'Gerinel 2021-12-27 13:26:43 -05:00
parent ec759984cd
commit be04049752
2 changed files with 7 additions and 2 deletions

View File

@ -33,4 +33,6 @@ impl Elemento for RolulPaĝo {
fn fenestraĵo(&self) -> gtk::Widget {
self.fenestraĵo.clone().upcast::<gtk::Widget>()
}
fn montru(&self) {}
}

View File

@ -21,9 +21,10 @@ fn with_auth(
})
}
/*
fn gm_routes(
auth_ctx: Arc<RwLock<OrizenticCtx>>,
) -> impl Filter<Extract = (), Error = Rejection> + Clone {
) -> impl Filter<Extract = (String,), Error = Rejection> + Clone {
let base_route = with_auth(auth_ctx).and(warp::path("gm"));
let character_sheet = {
@ -32,7 +33,9 @@ fn gm_routes(
.and(warp::path!("gm" / "character" / String))
.map(|auth: Username, name| format!("name: {} {}", String::from(auth), name))
};
unimplemented!()
}
*/
#[tokio::main]
pub async fn main() {
@ -56,7 +59,7 @@ pub async fn main() {
.and(warp::path!("player" / "character" / String))
.map(|authentication: String, name: String| format!("name: {}", name));
let filter = character_sheet.or(send_item).or(send_resource).or(pc_sheet);
let filter = pc_sheet.or(send_item).or(send_resource).or(pc_sheet);
let server = warp::serve(filter);
server