summaryrefslogblamecommitdiff
path: root/angelsharkd/src/routes/extensions/simple_search.rs
blob: 454dba3bd10f727f72b10fed1062ec7f9f814f5d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                 
use crate::config::Config;
use std::convert::Infallible;
use warp::{path, post, Filter, Rejection, Reply};

const CMD_LIST_EXT: &str = "list extension-type";
const CMD_LIST_STAT: &str = "list station";

pub fn filter() -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone {
    path("search").and(post()).and_then(handle_simple_search)
}

async fn handle_simple_search() -> Result<impl Reply, Infallible> {
    Ok("Search!")
}