Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
KeshavGogia committed Sep 15, 2024
1 parent 3394a59 commit f61f93f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const App = () => {
const fetchUser = async () => {
try {
const response = await axios.get(
`${process.env.REACT_APP_BACKEND_URL}/api/v1/user/patient/me`,
"https://medilinkai-backend.onrender.com/api/v1/user/patient/me",
{
withCredentials: true,
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Pages/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Login = () => {
try {
await axios
.post(
`${process.env.REACT_APP_BACKEND_URL}/api/v1/user/login`,
"https://medilinkai-backend.onrender.com/api/v1/user/login",
{ email, password, confirmPassword, role: "Patient" },
{
withCredentials: true,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Pages/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Register = () => {
try {
await axios
.post(
`${process.env.REACT_APP_BACKEND_URL}/api/v1/user/patient/register`,
"https://medilinkai-backend.onrender.com/api/v1/user/patient/register",
{ firstName, lastName, email, phone, nic, dob, gender, password,role : "Patient" },
{
withCredentials: true,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/AppointmentForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const AppointmentForm = () => {
useEffect(() => {
const fetchDoctors = async () => {
const { data } = await axios.get(
"http://localhost:8000/api/v1/user/doctors",
"https://medilinkai-backend.onrender.com/api/v1/user/doctors",
{ withCredentials: true }
);
setDoctors(data.doctors);
Expand All @@ -51,7 +51,7 @@ const AppointmentForm = () => {
try {
const hasVisitedBool = Boolean(hasVisited);
const { data } = await axios.post(
"http://localhost:8000/api/v1/appointment/post",
"https://medilinkai-backend.onrender.com/api/v1/appointment/post",
{
firstName,
lastName,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/MessageForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const MessageForm = () => {
try {
await axios
.post(
"http://localhost:8000/api/v1/message/send",
"https://medilinkai-backend.onrender.com/api/v1/message/send",
{ firstName, lastName, email, phone, message },
{
withCredentials: true,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Navbar = () => {

const handleLogout = async () => {
await axios
.get("http://localhost:8000/api/v1/user/patient/logout", {
.get("https://medilinkai-backend.onrender.com/api/v1/user/patient/logout", {
withCredentials: true,
})
.then((res) => {
Expand Down

0 comments on commit f61f93f

Please sign in to comment.