Add /commit/:hash page
This commit is contained in:
parent
965efa5b58
commit
128384bcf7
5 changed files with 169 additions and 0 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue