Skip to content

Commit

Permalink
revert api/v5 and put new changes in api/v6
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed May 18, 2024
1 parent dc6b048 commit 7afbc0d
Show file tree
Hide file tree
Showing 13 changed files with 1,426 additions and 143 deletions.
1 change: 1 addition & 0 deletions services/travelmux/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pub use app_state::AppState;
pub mod health;
pub mod v4;
pub mod v5;
pub mod v6;
4 changes: 2 additions & 2 deletions services/travelmux/src/api/v5/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::otp::otp_api;
use crate::valhalla::valhalla_api;
use crate::{DistanceUnit, Error, TravelMode};
use actix_web::HttpResponseBuilder;
use serde::Serialize;
use serde::{Deserialize, Serialize};

use super::{Itinerary, Plan};
use crate::error::ErrorType;
Expand Down Expand Up @@ -32,7 +32,7 @@ pub struct PlanError {
pub message: String,
}

#[derive(Debug, Serialize, Clone, PartialEq)]
#[derive(Debug, Deserialize, Serialize, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct PlanResponseOk {
pub(crate) plan: Plan,
Expand Down
6 changes: 0 additions & 6 deletions services/travelmux/src/api/v5/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
pub mod directions;
mod error;
mod haversine_segmenter;
mod osrm_api;
pub mod plan;
mod travel_modes;

pub use travel_modes::TravelModes;

pub use plan::{Itinerary, Plan};
Loading

0 comments on commit 7afbc0d

Please sign in to comment.