save state selected in modal filter, filter list with location selected, save data sort, filter list with sort point, real all url from .env file, change name of value category and specialties to persian and change functional find data with field
This commit is contained in:
@@ -4,12 +4,12 @@ import axios from "axios";
|
||||
|
||||
async function Appointment({ params: { slug } }) {
|
||||
const { matchedCity } = getStateInfo();
|
||||
const API_URL = process.env.NEXT_PUBLIC_API_URL;
|
||||
|
||||
let apt = null;
|
||||
try {
|
||||
const response = await axios.get(
|
||||
"https://back-dev.clinic-pro.ir/api/v1/appointment-slots"
|
||||
);
|
||||
const response = await axios.get(`${API_URL}/api/v1/appointment-slots`);
|
||||
|
||||
apt = response.data.data;
|
||||
} catch (error) {
|
||||
// console.error("problem with req:", error.message);
|
||||
|
||||
Reference in New Issue
Block a user