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:
Ehsan
2025-09-08 08:08:35 +03:30
parent ded164fcb9
commit 9f53daa398
19 changed files with 186 additions and 141 deletions
+4 -4
View File
@@ -3,10 +3,10 @@ import Layout from "@/components/layout/StLayout";
import { fetchReq } from "@/lib/req";
async function Blog({ params: { slug } }) {
const blog = await fetchReq(
`https://back-dev.clinic-pro.ir/api/v1/blog/${slug}`
);
const blogs = await fetchReq("https://back-dev.clinic-pro.ir/api/v1/blogs");
const API_URL = process.env.NEXT_PUBLIC_API_URL;
const blog = await fetchReq(`${API_URL}/api/v1/blog/${slug}`);
const blogs = await fetchReq(`${API_URL}/api/v1/blogs`);
return (
<Layout>