Skip to content

Commit

Permalink
Merge pull request #4 from ONDC-Official/fix/updated-env
Browse files Browse the repository at this point in the history
updated env variale
  • Loading branch information
Sarthak-kavidayal authored Dec 13, 2024
2 parents dfcecad + 2129e8f commit 5aac1ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/MetaDataForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const MetaDataForm = () => {
const createSession = async (data: any) => {
try {
const response = await axios.post(
`${import.meta.env.VITE_SOME_KEY}/sessions`,
`${import.meta.env.VITE_BACKEND_URL}/sessions`,
data
);
console.log("response", response.data);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Flows/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Flows = () => {

const getFlows = async () => {
const response = await axios.get(
`${import.meta.env.VITE_SOME_KEY}/flow`,
`${import.meta.env.VITE_BACKEND_URL}/flow`,
{}
);

Expand All @@ -49,7 +49,7 @@ const Flows = () => {

var config = {
method: "put",
url: `${import.meta.env.VITE_SOME_KEY}/sessions?subscriber_url=${
url: `${import.meta.env.VITE_BACKEND_URL}/sessions?subscriber_url=${
session.subscriberUrl
}`,
headers: {
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/Transaction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Flow = () => {
console.log("sessionData.active_session_id", sessionId);
try {
const response = await axios.get(
`${import.meta.env.VITE_SOME_KEY}/flow/report?sessionId=${sessionId}`
`${import.meta.env.VITE_BACKEND_URL}/flow/report?sessionId=${sessionId}`
);

const reporthtml = response.data.data;
Expand All @@ -46,7 +46,7 @@ const Flow = () => {
const session = JSON.parse(localStorage.getItem("session") || "{}");

const response = await axios.get(
`${import.meta.env.VITE_SOME_KEY}/sessions?subscriber_url=${
`${import.meta.env.VITE_BACKEND_URL}/sessions?subscriber_url=${
session.subscriberUrl
}`
);
Expand All @@ -73,7 +73,7 @@ const Flow = () => {
};

const response = await axios.post(
`${import.meta.env.VITE_SOME_KEY}/flow/trigger`,
`${import.meta.env.VITE_BACKEND_URL}/flow/trigger`,
data
);

Expand Down

0 comments on commit 5aac1ea

Please sign in to comment.