Skip to content

Commit

Permalink
Merge pull request #13 from GlideRide-online/patch-01
Browse files Browse the repository at this point in the history
added new backand route
  • Loading branch information
Akshat2Jain authored Dec 10, 2023
2 parents c1497cc + c5093dc commit d7a37f7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const App = () => {
const [value, setValue] = useState(false);
const getBooleanValue = async () => {
try {
const res = await axios.get("http://localhost:4000/getBooleanValue");
const res = await axios.get("https://glideride.onrender.com/getBooleanValue");
localStorage.setItem("ShowUi", res.data.booleanValue)
setValue(res.data.booleanValue);
} catch (error) {
Expand Down
5 changes: 3 additions & 2 deletions client/src/Steps/Summary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ const Summary = () => {
order_id: data.id,
handler: async (response) => {
try {
const verifyUrl = "http://localhost:4000/api/checkout/verify";
const verifyUrl =
"https://glideride.onrender.com/api/checkout/verify";
const { data } = await axios.post(verifyUrl, response);

if (data.success) {
Expand Down Expand Up @@ -118,7 +119,7 @@ const Summary = () => {
const handlePayment = async () => {
try {
const response = await axios.post(
"http://localhost:4000/api/checkout/orders",
"https://glideride.onrender.com/api/checkout/orders",
{ amount: numericValue }
);
initPayment(response.data.order);
Expand Down
4 changes: 2 additions & 2 deletions client/src/componetnts/DisableUiButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const DisableUiButton = () => {
const handleDisable = async () => {
console.log("ui disable");
try {
const res = await axios.post("http://localhost:4000/updateUi", {
const res = await axios.post("https://glideride.onrender.com/updateUi", {
booleanValue: true,
});
message.success("Ui Disabled successfully");
Expand All @@ -18,7 +18,7 @@ const DisableUiButton = () => {
const handleActivate = async () => {
console.log("Ui Activated");
try {
const res = await axios.post("http://localhost:4000/updateUi", {
const res = await axios.post("https://glideride.onrender.com/updateUi", {
booleanValue: false,
});
message.success("Ui Activated successfully");
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Booking.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Booking = ({ showUi }) => {
}, []);

const googleLogin = async () => {
window.open("http://localhost:4000/auth/google", "_self");
window.open("https://glideride.onrender.com/auth/google", "_self");
};

return (
Expand Down
2 changes: 1 addition & 1 deletion server/passportAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ passport.use(
{
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
callbackURL: "http://localhost:4000/auth/google/callback",
callbackURL: "https://glideride.onrender.com/auth/google/callback",
scope: ['https://www.googleapis.com/auth/userinfo.profile', 'email']
},
async (req, accessToken, refreshToken, profile, done) => {
Expand Down

0 comments on commit d7a37f7

Please sign in to comment.