From 5dc460d0376172218ed40bdffb5464e819c8cb71 Mon Sep 17 00:00:00 2001 From: Peter Beverloo Date: Thu, 2 Jan 2025 19:45:21 +0000 Subject: [PATCH] feat: Add the ability to trigger the authorization interrupt pages --- app/admin/system/debug/forbidden/page.tsx | 11 +++++++++++ app/admin/system/debug/not-found/page.tsx | 11 +++++++++++ app/admin/system/debug/unauthorized/page.tsx | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 app/admin/system/debug/forbidden/page.tsx create mode 100644 app/admin/system/debug/not-found/page.tsx create mode 100644 app/admin/system/debug/unauthorized/page.tsx diff --git a/app/admin/system/debug/forbidden/page.tsx b/app/admin/system/debug/forbidden/page.tsx new file mode 100644 index 00000000..689da552 --- /dev/null +++ b/app/admin/system/debug/forbidden/page.tsx @@ -0,0 +1,11 @@ +// Copyright 2025 Peter Beverloo & AnimeCon. All rights reserved. +// Use of this source code is governed by a MIT license that can be found in the LICENSE file. + +import { forbidden } from 'next/navigation'; + +/** + * Page that triggers the Next.js forbidden() page. + */ +export default function ForbiddenPage() { + return forbidden(); +} diff --git a/app/admin/system/debug/not-found/page.tsx b/app/admin/system/debug/not-found/page.tsx new file mode 100644 index 00000000..1697ea55 --- /dev/null +++ b/app/admin/system/debug/not-found/page.tsx @@ -0,0 +1,11 @@ +// Copyright 2025 Peter Beverloo & AnimeCon. All rights reserved. +// Use of this source code is governed by a MIT license that can be found in the LICENSE file. + +import { notFound } from 'next/navigation'; + +/** + * Page that triggers the Next.js notFound() page. + */ +export default function NotFoundPage() { + return notFound(); +} diff --git a/app/admin/system/debug/unauthorized/page.tsx b/app/admin/system/debug/unauthorized/page.tsx new file mode 100644 index 00000000..0829aaf4 --- /dev/null +++ b/app/admin/system/debug/unauthorized/page.tsx @@ -0,0 +1,11 @@ +// Copyright 2025 Peter Beverloo & AnimeCon. All rights reserved. +// Use of this source code is governed by a MIT license that can be found in the LICENSE file. + +import { unauthorized } from 'next/navigation'; + +/** + * Page that triggers the Next.js unauthorized() page. + */ +export default function UnauthorizedPage() { + return unauthorized(); +}