Skip to content

Commit 372b41c

Browse files
Merge pull request #333 from geo-engine/version_rpo
version api call for pro
2 parents 3c77949 + fe4b7f3 commit 372b41c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

services/src/pro/server.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::pro;
55
#[cfg(feature = "postgres")]
66
use crate::pro::contexts::PostgresContext;
77
use crate::pro::contexts::{ProContext, ProInMemoryContext};
8-
use crate::server::serve_static_directory;
8+
use crate::server::{serve_static_directory, show_version_handler};
99
use crate::util::config::{self, get_config_element, Backend};
1010
use crate::{combine, error};
1111

@@ -64,7 +64,8 @@ where
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")]

services/src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)