This repository was archived by the owner on Sep 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,10 @@ pub fn build_router(
228
228
mas_config:: HttpResource :: Compat => {
229
229
router. merge ( mas_handlers:: compat_router :: < AppState > ( ) )
230
230
}
231
+ mas_config:: HttpResource :: AdminApi => {
232
+ let ( _, api_router) = mas_handlers:: admin_api_router :: < AppState > ( ) ;
233
+ router. merge ( api_router)
234
+ }
231
235
// TODO: do a better handler here
232
236
mas_config:: HttpResource :: ConnectionInfo => router. route (
233
237
"/connection-info" ,
Original file line number Diff line number Diff line change @@ -312,6 +312,9 @@ pub enum Resource {
312
312
path : Utf8PathBuf ,
313
313
} ,
314
314
315
+ /// Admin API, served at `/api/admin/v1`
316
+ AdminApi ,
317
+
315
318
/// Mount a "/connection-info" handler which helps debugging informations on
316
319
/// the upstream connection
317
320
#[ serde( rename = "connection-info" ) ]
Original file line number Diff line number Diff line change 788
788
}
789
789
}
790
790
},
791
+ {
792
+ "description" : " Admin API, served at `/api/admin/v1`" ,
793
+ "type" : " object" ,
794
+ "required" : [
795
+ " name"
796
+ ],
797
+ "properties" : {
798
+ "name" : {
799
+ "type" : " string" ,
800
+ "enum" : [
801
+ " adminapi"
802
+ ]
803
+ }
804
+ }
805
+ },
791
806
{
792
807
"description" : " Mount a \" /connection-info\" handler which helps debugging informations on the upstream connection" ,
793
808
"type" : " object" ,
You can’t perform that action at this time.
0 commit comments