mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-04 03:51:43 +02:00
0bba1f5a24
fix fix
16 lines
404 B
Rust
16 lines
404 B
Rust
mod handlers;
|
|
|
|
use axum::{Router, extract::FromRef, routing::get};
|
|
#[allow(clippy::module_name_repetitions)]
|
|
pub use handlers::{SearchParams as SearchQueryParams, search_result_handler as result_handler};
|
|
|
|
use crate::html_state::HtmlState;
|
|
|
|
pub fn router<S>() -> Router<S>
|
|
where
|
|
S: Clone + Send + Sync + 'static,
|
|
HtmlState: FromRef<S>,
|
|
{
|
|
Router::new().route("/search", get(result_handler))
|
|
}
|