This repository was archived by the owner on Jan 27, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
crates/orchestrator/src/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ pub async fn start_server(
8787 ) ) ;
8888
8989 let api_key_middleware = Arc :: new ( ApiKeyMiddleware :: new ( admin_api_key) ) ;
90-
9190 HttpServer :: new ( move || {
9291 let mut app = App :: new ( )
9392 . app_data ( app_state. clone ( ) )
@@ -106,15 +105,15 @@ pub async fn start_server(
106105 HttpResponse :: InternalServerError ( ) . json ( health_status)
107106 }
108107 } ,
109- ) ) ) ;
108+ ) ) )
109+ . service ( metrics_routes ( ) . wrap ( api_key_middleware. clone ( ) ) ) ;
110110
111111 if !matches ! ( server_mode, ServerMode :: ProcessorOnly ) {
112112 app = app
113113 . service ( heartbeat_routes ( ) . wrap ( ValidateSignature :: new ( validator_state. clone ( ) ) ) )
114114 . service ( storage_routes ( ) . wrap ( ValidateSignature :: new ( validator_state. clone ( ) ) ) )
115115 . service ( nodes_routes ( ) . wrap ( api_key_middleware. clone ( ) ) )
116116 . service ( tasks_routes ( ) . wrap ( api_key_middleware. clone ( ) ) )
117- . service ( metrics_routes ( ) . wrap ( api_key_middleware. clone ( ) ) )
118117 . service ( groups_routes ( ) . wrap ( api_key_middleware. clone ( ) ) )
119118 . default_service ( web:: route ( ) . to ( || async {
120119 HttpResponse :: NotFound ( ) . json ( json ! ( {
You can’t perform that action at this time.
0 commit comments