Add lib.rs, scaffold testing

This commit is contained in:
Juno Takano 2025-12-14 19:00:57 -03:00
commit d9a6938eb6
11 changed files with 57 additions and 14 deletions

View file

@ -20,6 +20,7 @@ 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())
}