Add property listing

This commit is contained in:
Andras Schmelczer 2026-01-31 12:50:01 +00:00
parent 51967fa880
commit 85f5770e09
3 changed files with 254 additions and 7 deletions

View file

@ -72,6 +72,7 @@ async fn main() {
let state_hexagons = state.clone();
let state_pois = state.clone();
let state_poi_categories = state.clone();
let state_hexagon_properties = state.clone();
let api = Router::new()
.route(
@ -89,6 +90,10 @@ async fn main() {
.route(
"/api/poi-categories",
get(move || routes::get_poi_categories(state_poi_categories.clone())),
)
.route(
"/api/hexagon-properties",
get(move |query| routes::get_hexagon_properties(state_hexagon_properties.clone(), query)),
);
// Static file serving for frontend