Skip to content

Commit

Permalink
Merge pull request #10 from bcgov/feature/multi-scenario
Browse files Browse the repository at this point in the history
Update missed endpoint.
  • Loading branch information
brysonjbest authored Jul 5, 2024
2 parents 0ae6f9e + b27a01e commit 48e6571
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ export const getRuleRunSchema = async (ruleResponse: unknown) => {
*/
export const getScenariosByFilename = async (goRulesJSONFilename: string) => {
try {
const { data } = await axiosAPIInstance.post(
`/scenario/by-filename?goRulesJSONFilename=${encodeURIComponent(goRulesJSONFilename)}`
);
const { data } = await axiosAPIInstance.post("/scenario/by-filename/", { goRulesJSONFilename });
return data;
} catch (error) {
console.error(`Error posting output schema: ${error}`);
Expand Down

0 comments on commit 48e6571

Please sign in to comment.