Skip to content

Commit

Permalink
thinking even more
Browse files Browse the repository at this point in the history
  • Loading branch information
ichub committed Sep 27, 2024
1 parent a1282ca commit 74740fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ export function initGenericIssuanceRoutes(
}
);

app.post(
app.get(
"/generic-issuance/api/ticket-previews/:email/:orderCode",
async (req, res) => {
checkGenericIssuanceServiceStarted(genericIssuanceService);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import urlJoin from "url-join";
import { TicketPreviewResultValue } from "../RequestTypes";
import { APIResult } from "./apiResult";
import { httpPostSimple } from "./makeRequest";
import { httpGetSimple } from "./makeRequest";

/**
* Asks the server to fetch the pipeline definition corresponding to the
Expand All @@ -13,7 +13,7 @@ export async function requestGenericIssuanceTicketPreviews(
email: string,
orderCode: string
): Promise<GenericIssuanceTicketPreviewResponse> {
return httpPostSimple(
return httpGetSimple(
urlJoin(
zupassServerUrl,
`/generic-issuance/api/ticket-previews`,
Expand All @@ -24,8 +24,7 @@ export async function requestGenericIssuanceTicketPreviews(
value: JSON.parse(resText) as TicketPreviewResultValue,
success: true
}),
{},
true
{}
);
}

Expand Down

0 comments on commit 74740fa

Please sign in to comment.