Skip to content

Commit

Permalink
fixup! editoast: add stdcm v2 endpoint for editoast
Browse files Browse the repository at this point in the history
  • Loading branch information
younesschrifi committed May 13, 2024
1 parent 5e3136d commit 28f0cb1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions editoast/src/core/v2/stdcm.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::collections::HashMap;

use crate::core::pathfinding::PathfindingResponse;
use crate::core::v2::simulation::RoutingRequirement;
use crate::core::v2::simulation::SpacingRequirement;
use chrono::DateTime;
Expand Down Expand Up @@ -89,12 +88,8 @@ pub enum STDCMResponse {
path: PathfindingResultSuccess,
departure_time: DateTime<Utc>,
},
PathNotFound {
pathfinding_failure: PathfindingResponse,
},
SimulationNotFound {
simulation_failure: SimulationResponse,
},
PathNotFound,
SimulationNotFound,
}

impl AsCoreRequest<Json<STDCMResponse>> for STDCMRequest {
Expand Down

0 comments on commit 28f0cb1

Please sign in to comment.