Handler wrappers for tile routes
(
state: axum::extract::State<Arc<ApiState>>,
Path((level, index_path)): Path<(u8, String)>,
)
| 129 | |
| 130 | // Handler wrappers for tile routes |
| 131 | async fn handle_tile_request_with_path( |
| 132 | state: axum::extract::State<Arc<ApiState>>, |
| 133 | Path((level, index_path)): Path<(u8, String)>, |
| 134 | ) -> Result<Response, (axum::http::StatusCode, axum::Json<ErrorResponse>)> { |
| 135 | // Parse the index path which may contain .p/{width} |
| 136 | let (index, width) = parse_tile_path(&index_path); |
| 137 | static_handlers::get_tile(state, Path((level, index, width))).await |
| 138 | } |
| 139 | |
| 140 | async fn handle_data_tile_request_with_path( |
| 141 | state: axum::extract::State<Arc<ApiState>>, |
nothing calls this directly
no test coverage detected