sequential extractor

This commit is contained in:
ad hoc 2022-03-04 20:12:44 +01:00
parent af8a5f2c21
commit b57c59baa4
No known key found for this signature in database
GPG key ID: 4F00A782990CC643
14 changed files with 198 additions and 38 deletions

View file

@ -9,12 +9,13 @@ use serde_json::Value;
use crate::analytics::{Analytics, SearchAggregator};
use crate::extractors::authentication::{policies::*, GuardedData};
use crate::extractors::sequential_extractor::SeqHandler;
pub fn configure(cfg: &mut web::ServiceConfig) {
cfg.service(
web::resource("")
.route(web::get().to(search_with_url_query))
.route(web::post().to(search_with_post)),
.route(web::get().to(SeqHandler(search_with_url_query)))
.route(web::post().to(SeqHandler(search_with_post))),
);
}