Use /launches instead of /launch since there are now multiple
This commit is contained in:
@@ -11,7 +11,7 @@ public class CreateMissionLaunch(MissionControlContext dbContext)
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
Post("/missions/{MissionId}/launch");
|
||||
Post("/missions/{MissionId}/launches");
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(CreateMissionLaunchRequest req, CancellationToken ct)
|
||||
|
||||
@@ -27,7 +27,7 @@ export async function createMissionLaunch(
|
||||
request: CreateMissionLaunchRequest,
|
||||
): Promise<MissionLaunch> {
|
||||
const response = await apiClient.post<MissionLaunch>(
|
||||
`/missions/${request.missionId}/launch`,
|
||||
`/missions/${request.missionId}/launches`,
|
||||
request,
|
||||
);
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user