From e2ba740c9131847c2e3831f95e0859bc4f956212 Mon Sep 17 00:00:00 2001 From: wangle Date: Thu, 24 Oct 2024 21:31:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web_config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web_config.rs b/src/web_config.rs index b9c4f1c2..2a8cc651 100644 --- a/src/web_config.rs +++ b/src/web_config.rs @@ -118,7 +118,7 @@ pub fn app_config(conf_data: AppSysConfig) -> impl FnOnce(&mut ServiceConfig) { } #[deprecated] -pub fn app_without_no_auth_console_config(config: &mut web::ServiceConfig) { +pub fn app_without_no_auth_console_config(config: &mut ServiceConfig) { config .service(web::resource("/").route(web::get().to(disable_no_auth_console_index))) .service(web::resource("/nacos").route(web::get().to(disable_no_auth_console_index))) @@ -132,7 +132,7 @@ pub fn app_without_no_auth_console_config(config: &mut web::ServiceConfig) { raft_config(config); } -pub fn nacos_console_api_config(config: &mut web::ServiceConfig) { +pub fn nacos_console_api_config(config: &mut ServiceConfig) { config.service( web::scope("/nacos/v1/console").service( web::resource("/namespaces") @@ -145,14 +145,14 @@ pub fn nacos_console_api_config(config: &mut web::ServiceConfig) { } /// 独立控制台服务 -pub fn console_config(config: &mut web::ServiceConfig) { +pub fn console_config(config: &mut ServiceConfig) { //console_api_config(config); console_api_config_v2(config); console_api_config_v1(config); console_page_config(config); } -pub fn console_page_config(config: &mut web::ServiceConfig) { +pub fn console_page_config(config: &mut ServiceConfig) { config .service(web::resource("/").route(web::get().to(index))) .service(icon)