From bffab21b101b1f853b3be8c06b2de93d51608357 Mon Sep 17 00:00:00 2001 From: Anirudh Rowjee Date: Mon, 4 Oct 2021 14:47:05 +0530 Subject: [PATCH] Changes 1. Removed redundant scope registration --- meilisearch-http/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/meilisearch-http/src/lib.rs b/meilisearch-http/src/lib.rs index 492e500b9..0b9dacbe0 100644 --- a/meilisearch-http/src/lib.rs +++ b/meilisearch-http/src/lib.rs @@ -147,7 +147,6 @@ pub fn dashboard(config: &mut web::ServiceConfig, enable_frontend: bool) { if enable_frontend { let generated = generated::generate(); - let scope = web::scope("/"); // Generate routes for mini-dashboard assets for (path, resource) in generated.into_iter() { let Resource { @@ -164,7 +163,6 @@ pub fn dashboard(config: &mut web::ServiceConfig, enable_frontend: bool) { )); } } - config.service(scope); } else { config.service(web::resource("/").route(web::get().to(routes::running))); }