From f4f4c5a0a28979f0594b65a561d7c945f5de5952 Mon Sep 17 00:00:00 2001 From: Hubert Date: Wed, 7 Jul 2021 07:09:22 +0200 Subject: [PATCH] save --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index af5e454..5974429 100644 --- a/src/main.rs +++ b/src/main.rs @@ -115,6 +115,10 @@ async fn git_main(web::Path((owner, reponame)): web::Path<(String, String)>, web let user = User { name : "Hubert".to_string()}; GitMainTemplate { repo, browse : browse, root : path, user_opt : Some(user)} } +#[get("/git/{owner}/{repo}.git/{path:.*}")] +async fn git_proto(web::Path((owner, reponame)): web::Path<(String, String)>, req: HttpRequest) -> impl Responder{ + "not yet implemented" +} #[post("/echo")] async fn echo(req_body: String) -> impl Responder { @@ -172,6 +176,7 @@ async fn main() -> std::io::Result<()> { .service(askama) .service(git_main) .service(hello_session) + .service(git_proto) // .service( // web::scope("/auth") // .wrap(auth)