Files
myeasycms-v2/apps/web/app/admin/accounts/[account]/page.tsx
giancarlo 45417fe2c5 Wrap admin pages with AdminGuard component
The AdminGuard component has been added to the AccountPage, AccountsPage, and AdminPage in the web app. This server-side implementation ensures that these pages are only accessible to super-admin users. If a user is not a super-admin, the guard will trigger a redirect to a 404 page.
2024-04-08 14:39:02 +08:00

8 lines
155 B
TypeScript

import { AdminGuard } from '@kit/admin/components/admin-guard';
function AccountPage() {
return <div></div>;
}
export default AdminGuard(AccountPage);