aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-22 04:09:18 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-22 04:09:18 -0600
commita88d3091ed0df6b4821688cca653b7fdef3a03d7 (patch)
treec0bced3aa70cf61ff8d4bb56bab565a065e9bc80 /src/main.rs
parent8c1666c1a64201f8a12e125e3c63a83f4dbf7069 (diff)
downloadgityeet-a88d3091ed0df6b4821688cca653b7fdef3a03d7.tar.gz
gityeet-a88d3091ed0df6b4821688cca653b7fdef3a03d7.zip
correctly find repos in subdirectories
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 52dcaee..795cf41 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -34,6 +34,8 @@ async fn main() -> Result<()> {
// TODO do something smarter for that
let mut app = tide::with_state(Arc::new(Mutex::new(state)));
app.at("/").get(index);
+ app.at("/*repo").get(|_| async { Ok("bruh") });
+ app.at("/*repo/tree").get(|_| async { Ok("bruh tree") });
app.listen(("127.0.0.1", port)).await?;
Ok(())
}