Add /commit/:hash page

This commit is contained in:
Joscha 2023-08-05 23:05:27 +02:00
parent 965efa5b58
commit 128384bcf7
5 changed files with 169 additions and 0 deletions

View file

@ -1,4 +1,5 @@
mod commit;
mod commit_hash;
mod index;
mod r#static;
@ -12,6 +13,7 @@ pub async fn run(state: AppState) -> somehow::Result<()> {
let app = Router::new()
.route("/", get(index::get))
.route("/commit/", get(commit::get))
.route("/commit/:hash", get(commit_hash::get))
.fallback(get(r#static::static_handler))
.with_state(state.clone());