all menu pages got dynamic

This commit is contained in:
parsa aghaei committed 2024-10-13 18:33:43 +03:30
1 parent 160e2e936f
commit dc11b6c9b3
11 files changed
+599 -1050

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { NextResponse } from "next/server";
export async function GET() {
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/blog/homepage`, {
cache: "no-store" // غیرفعال کردن کش
});
const data = await response.json();
return NextResponse.json(data);
}