save
This commit is contained in:
parent
ffeba7e69c
commit
f4f4c5a0a2
|
@ -115,6 +115,10 @@ async fn git_main(web::Path((owner, reponame)): web::Path<(String, String)>, web
|
||||||
let user = User { name : "Hubert".to_string()};
|
let user = User { name : "Hubert".to_string()};
|
||||||
GitMainTemplate { repo, browse : browse, root : path, user_opt : Some(user)}
|
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")]
|
#[post("/echo")]
|
||||||
async fn echo(req_body: String) -> impl Responder {
|
async fn echo(req_body: String) -> impl Responder {
|
||||||
|
@ -172,6 +176,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
.service(askama)
|
.service(askama)
|
||||||
.service(git_main)
|
.service(git_main)
|
||||||
.service(hello_session)
|
.service(hello_session)
|
||||||
|
.service(git_proto)
|
||||||
// .service(
|
// .service(
|
||||||
// web::scope("/auth")
|
// web::scope("/auth")
|
||||||
// .wrap(auth)
|
// .wrap(auth)
|
||||||
|
|
Loading…
Reference in New Issue