File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use crate::pro;
55#[ cfg( feature = "postgres" ) ]
66use crate :: pro:: contexts:: PostgresContext ;
77use crate :: pro:: contexts:: { ProContext , ProInMemoryContext } ;
8- use crate :: server:: serve_static_directory;
8+ use crate :: server:: { serve_static_directory, show_version_handler } ;
99use crate :: util:: config:: { self , get_config_element, Backend } ;
1010use crate :: { combine, error} ;
1111
6464 handlers:: wfs:: wfs_handler( ctx. clone( ) ) ,
6565 handlers:: plots:: get_plot_handler( ctx. clone( ) ) ,
6666 handlers:: upload:: upload_handler( ctx. clone( ) ) ,
67- handlers:: spatial_references:: get_spatial_reference_specification_handler( ctx. clone( ) )
67+ handlers:: spatial_references:: get_spatial_reference_specification_handler( ctx. clone( ) ) ,
68+ show_version_handler( ) // TODO: allow disabling this function via config or feature flag
6869 ) ;
6970
7071 #[ cfg( feature = "odm" ) ]
Original file line number Diff line number Diff line change @@ -132,8 +132,8 @@ where
132132/// "commitHash": "16cd0881a79b6f03bb5f1f6ef2b2711e570b9865"
133133/// }
134134/// ```
135- fn show_version_handler ( ) -> impl Filter < Extract = impl warp :: Reply , Error = warp :: Rejection > + Clone
136- {
135+ pub fn show_version_handler (
136+ ) -> impl Filter < Extract = impl warp :: Reply , Error = warp :: Rejection > + Clone {
137137 warp:: path ( "version" )
138138 . and ( warp:: get ( ) )
139139 . and_then ( show_version)
You can’t perform that action at this time.
0 commit comments