Skip to content

Commit

Permalink
-ur
Browse files Browse the repository at this point in the history
  • Loading branch information
KeshavGogia committed Sep 15, 2024
1 parent 3ca72e7 commit 398507c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dashboard/src/components/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Dashboard = () => {
const fetchAppointments = async () => {
try {
const { data } = await axios.get(
"http://localhost:8000/api/v1/appointment/getall",
`${process.env.REACT_APP_BACKEND_URL}/api/v1/appointment/getall`,
{ withCredentials: true }
);
setAppointments(data.appointments);
Expand All @@ -27,7 +27,7 @@ const Dashboard = () => {
const handleUpdateStatus = async (appointmentId, status) => {
try {
const { data } = await axios.put(
`http://localhost:8000/api/v1/appointment/update/${appointmentId}`,
`${process.env.REACT_APP_BACKEND_URL}/api/v1/appointment/update/${appointmentId}`,
{ status },
{ withCredentials: true }
);
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/Doctors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Doctors = () => {
const fetchDoctors = async () => {
try {
const { data } = await axios.get(
"http://localhost:8000/api/v1/user/doctors",
`${process.env.REACT_APP_BACKEND_URL}/api/v1/user/doctors`,
{ withCredentials: true }
);
setDoctors(data.doctors);
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/components/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Login = () => {
try {
await axios
.post(
"http://localhost:8000/api/v1/user/login",
`${process.env.REACT_APP_BACKEND_URL}/api/v1/user/login`,
{ email, password, confirmPassword, role: "Admin" },
{
withCredentials: true,
Expand Down

0 comments on commit 398507c

Please sign in to comment.