web & server: using tantivy for news post search
This commit is contained in:
@@ -27,11 +27,6 @@ use server::{
|
||||
};
|
||||
use sqlx::postgres::PgPool;
|
||||
|
||||
#[get("/refresh")]
|
||||
async fn refresh(nm: &State<Notmuch>) -> Result<Json<String>, Debug<NotmuchError>> {
|
||||
Ok(Json(String::from_utf8_lossy(&nm.new()?).to_string()))
|
||||
}
|
||||
|
||||
#[get("/show/<query>/pretty")]
|
||||
async fn show_pretty(
|
||||
nm: &State<Notmuch>,
|
||||
@@ -209,7 +204,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
shared::urls::MOUNT_POINT,
|
||||
routes![
|
||||
original,
|
||||
refresh,
|
||||
show_pretty,
|
||||
show,
|
||||
graphql_query,
|
||||
|
||||
Reference in New Issue
Block a user