generalise git_main

This commit is contained in:
hubert
2021-07-22 13:36:48 +02:00
parent 90ea298a61
commit 22836e1f3a
2 changed files with 4 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ async fn main() -> std::io::Result<()> {
.service(askama)
.service(
webx::resource("/git/{owner}/{repo}.git")
.route(webx::get().to(repo::git_main))
.route(webx::get().to(repo::git_main::<auth::TestValidator>))
)
.service(hello_session)
.service(chunk)