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()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Post("/missions/{MissionId}/launch");
|
Post("/missions/{MissionId}/launches");
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(CreateMissionLaunchRequest req, CancellationToken ct)
|
public override async Task HandleAsync(CreateMissionLaunchRequest req, CancellationToken ct)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export async function createMissionLaunch(
|
|||||||
request: CreateMissionLaunchRequest,
|
request: CreateMissionLaunchRequest,
|
||||||
): Promise<MissionLaunch> {
|
): Promise<MissionLaunch> {
|
||||||
const response = await apiClient.post<MissionLaunch>(
|
const response = await apiClient.post<MissionLaunch>(
|
||||||
`/missions/${request.missionId}/launch`,
|
`/missions/${request.missionId}/launches`,
|
||||||
request,
|
request,
|
||||||
);
|
);
|
||||||
return response.data;
|
return response.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user