16 lines
403 B
TypeScript
16 lines
403 B
TypeScript
import Users from "@/app/features/Pages/Admin/Users/users";
|
|
|
|
export default async function BackOfficeUsersPage() {
|
|
const res = await fetch("http://localhost:3000/api/dashboard/admin/users", {
|
|
cache: "no-store", // 👈 disables caching for SSR freshness
|
|
});
|
|
const users = await res.json();
|
|
|
|
console.log("[USERS]", users);
|
|
return (
|
|
<div>
|
|
<Users users={users} />
|
|
</div>
|
|
);
|
|
}
|