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:
@@ -3,12 +3,14 @@ import Layout from "@/components/layout/StLayout";
|
||||
import { fetchReq } from "@/lib/req";
|
||||
|
||||
async function Clinic({ params: { slug } }) {
|
||||
const API_URL = process.env.NEXT_PUBLIC_API_URL;
|
||||
|
||||
const reqClinics = await fetchReq(
|
||||
`https://back-dev.clinic-pro.ir/api/v1/clinic/${slug}`
|
||||
`${API_URL}/api/v1/clinic/${slug}`
|
||||
);
|
||||
|
||||
const reqDoctors = await fetchReq(
|
||||
"https://back-dev.clinic-pro.ir/api/v1/doctors"
|
||||
`${API_URL}/api/v1/doctors`
|
||||
);
|
||||
|
||||
const clinic = reqClinics;
|
||||
|
||||
Reference in New Issue
Block a user