mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-11 05:54:30 +01:00
add request middleware
This commit is contained in:
parent
faf0dd2f44
commit
10b8a0ab00
@ -6,7 +6,7 @@ use log::info;
|
||||
use main_error::MainError;
|
||||
use structopt::StructOpt;
|
||||
// use tide::middleware::{CorsMiddleware, CorsOrigin};
|
||||
// use tide_log::RequestLogger;
|
||||
use tide::middleware::RequestLogger;
|
||||
|
||||
use meilisearch_http::data::Data;
|
||||
use meilisearch_http::option::Opt;
|
||||
@ -41,7 +41,7 @@ pub fn main() -> Result<(), MainError> {
|
||||
// .allow_origin(CorsOrigin::from("*"))
|
||||
// .allow_methods(HeaderValue::from_static("GET, POST, OPTIONS")),
|
||||
// );
|
||||
// app.middleware(RequestLogger::new());
|
||||
app.middleware(RequestLogger::new());
|
||||
// app.middleware(tide_compression::Compression::new());
|
||||
// app.middleware(tide_compression::Decompression::new());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user