Skip to content

Commit ae9dbd2

Browse files
refactors routes
1 parent ff4859f commit ae9dbd2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/routes/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ async def simulate_env(env_id: str) -> "EnvSummary":
9191
## Args
9292
``` env_id: str ```
9393
"""
94-
return await EnvController.simulate(env_id)
94+
return await EnvController.simulate_env(env_id)

lib/routes/flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def read_rocketpy_flight(flight_id: int) -> "FlightPickle":
6262
## Args
6363
``` flight_id: Flight ID hash. ```
6464
"""
65-
return await FlightController.get_rocketpy_flight(flight_id)
65+
return await FlightController.get_rocketpy_flight_as_jsonpickle(flight_id)
6666

6767

6868
@router.put("/{flight_id}/env")

lib/routes/motor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def read_rocketpy_motor(motor_id: int) -> "MotorPickle":
8282
## Args
8383
``` motor_id: Motor ID hash ```
8484
"""
85-
return await MotorController.get_rocketpy_motor(motor_id)
85+
return await MotorController.get_rocketpy_motor_as_jsonpickle(motor_id)
8686

8787

8888
@router.get("/{motor_id}/simulate")
@@ -93,4 +93,4 @@ async def simulate_motor(motor_id: int) -> "MotorSummary":
9393
## Args
9494
``` motor_id: Motor ID hash ```
9595
"""
96-
return await MotorController.simulate(motor_id)
96+
return await MotorController.simulate_motor(motor_id)

lib/routes/rocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ async def simulate_rocket(rocket_id: int) -> "RocketSummary":
103103
## Args
104104
``` rocket_id: Rocket ID hash ```
105105
"""
106-
return await RocketController.simulate(rocket_id)
106+
return await RocketController.simulate_rocket(rocket_id)

0 commit comments

Comments
 (0)