Add property listing
This commit is contained in:
parent
51967fa880
commit
85f5770e09
3 changed files with 254 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue