Skip to content

Commit

Permalink
core: remove deprecated endpoints from worker
Browse files Browse the repository at this point in the history
Let them on API as there is still a little some use

Signed-off-by: Pierre-Etienne Bougué <[email protected]>
  • Loading branch information
bougue-pe committed Nov 15, 2024
1 parent ab0de8c commit 3d0eb7f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/src/main/java/fr/sncf/osrd/cli/WorkerCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import fr.sncf.osrd.api.api_v2.pathfinding.PathfindingBlocksEndpointV2
import fr.sncf.osrd.api.api_v2.project_signals.SignalProjectionEndpointV2
import fr.sncf.osrd.api.api_v2.standalone_sim.SimulationEndpoint
import fr.sncf.osrd.api.api_v2.stdcm.STDCMEndpointV2
import fr.sncf.osrd.api.pathfinding.PathfindingBlocksEndpoint
import fr.sncf.osrd.api.stdcm.STDCMEndpoint
import fr.sncf.osrd.reporting.warnings.DiagnosticRecorderImpl
import io.opentelemetry.api.GlobalOpenTelemetry
import io.opentelemetry.context.Context
Expand Down Expand Up @@ -123,20 +121,14 @@ class WorkerCommand : CliCommand {

val endpoints =
mapOf(
"/pathfinding/routes" to PathfindingBlocksEndpoint(infraManager),
"/v2/pathfinding/blocks" to PathfindingBlocksEndpointV2(infraManager),
"/v2/path_properties" to PathPropEndpoint(infraManager),
"/standalone_simulation" to
StandaloneSimulationEndpoint(infraManager, electricalProfileSetManager),
"/v2/standalone_simulation" to
SimulationEndpoint(infraManager, electricalProfileSetManager),
"/project_signals" to SignalProjectionEndpoint(infraManager),
"/v2/signal_projection" to SignalProjectionEndpointV2(infraManager),
"/detect_conflicts" to ConflictDetectionEndpoint(),
"/v2/conflict_detection" to ConflictDetectionEndpointV2(infraManager),
"/cache_status" to InfraCacheStatusEndpoint(infraManager),
"/version" to VersionEndpoint(),
"/stdcm" to STDCMEndpoint(infraManager),
"/v2/stdcm" to STDCMEndpointV2(infraManager),
"/infra_load" to InfraLoadEndpoint(infraManager),
)
Expand Down

0 comments on commit 3d0eb7f

Please sign in to comment.