Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ impl<S> GeoEngineAuthMiddleware<S> {
const_concat!("/processes/", BiodiversitySensitiveAreasProcess::ID),
const_concat!("/processes/", HabitatDistanceProcess::ID),
const_concat!("/processes/", LandUseSealedAreaProcess::ID),
"/profiles/table-schema/climate-risk/1.0/schema.json",
],
prefix: vec!["/api", "/swagger", "/auth/"],
},
Expand Down
8 changes: 8 additions & 0 deletions backend/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use axum::{
extract::{Query, State},
http::StatusCode,
response::IntoResponse,
routing::get,
};
use geoengine_api_client::apis::{
configuration::Configuration,
Expand All @@ -25,6 +26,13 @@ pub fn auth_router() -> OpenApiRouter<Configuration> {
.routes(routes!(auth_request_url_handler))
}

pub fn profile_router() -> OpenApiRouter<Configuration> {
OpenApiRouter::new().route(
"/profiles/table-schema/climate-risk/1.0/schema.json",
get(crate::profile::climate_risk_table_schema_profile),
)
}

#[utoipa::path(get, path = "/health", responses((status = NO_CONTENT)))]
pub async fn health_handler() -> StatusCode {
StatusCode::NO_CONTENT
Expand Down
1 change: 1 addition & 0 deletions backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mod db;
mod handler;
mod jobs;
mod processes;
mod profile;
mod server;
mod state;
mod util;
Expand Down
1 change: 1 addition & 0 deletions backend/src/processes/biodiversity_sensitive_areas/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ fn site_row_into_output(
},
],
primary_key: vec!["location".to_string()].into(),
..Default::default()
},
}
}
Expand Down
Loading
Loading