mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit 07ea58d2dac2620a0ae80a8d3273d4628c0101be
parent 2554a8c10dd8454814b3a4779a23e9abe40bd751
Author: Johann150 <johann@qwertqwefsday.eu>
Date:   Sat, 20 Mar 2021 01:07:12 +0100

recognize repositories with trailing slash

Diffstat:
Msrc/main.rs | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -473,6 +473,7 @@ async fn main() -> Result<(), std::io::Error> { .serve_file("templates/static/style.css")?; // TODO configurable app.at("/:repo_name").get(repo_home); // ALSO do git pull at this url somehow ^ + app.at("/:repo_name/").get(repo_home); app.at("/:repo_name/commit/:commit").get(repo_commit); app.at("/:repo_name/refs").get(repo_refs); app.at("/:repo_name/log").get(repo_log);