Extract router from main to its own module
This commit is contained in:
parent
f14ee592af
commit
089b507299
6 changed files with 44 additions and 41 deletions
|
|
@ -20,7 +20,6 @@ pub async fn nexus(template: &str) -> Response<Body> {
|
|||
handlers::template::by_filename(template, &context, 500, None, false)
|
||||
}
|
||||
|
||||
#[expect(clippy::unused_async)]
|
||||
pub async fn search(Form(query): Form<Query>) -> Redirect {
|
||||
Redirect::permanent(format!("/node/{}", query.node).as_str())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue