Initial commit
This commit is contained in:
27
frontend/app/admin/[section]/page.tsx
Normal file
27
frontend/app/admin/[section]/page.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { notFound } from 'next/navigation'
|
||||
import SettingsPage from '../SettingsPage'
|
||||
|
||||
const ALLOWED_SECTIONS = new Set([
|
||||
'jellyseerr',
|
||||
'jellyfin',
|
||||
'artwork',
|
||||
'sonarr',
|
||||
'radarr',
|
||||
'prowlarr',
|
||||
'qbittorrent',
|
||||
'requests',
|
||||
'cache',
|
||||
'logs',
|
||||
'maintenance',
|
||||
])
|
||||
|
||||
type PageProps = {
|
||||
params: { section: string }
|
||||
}
|
||||
|
||||
export default function AdminSectionPage({ params }: PageProps) {
|
||||
if (!ALLOWED_SECTIONS.has(params.section)) {
|
||||
notFound()
|
||||
}
|
||||
return <SettingsPage section={params.section} />
|
||||
}
|
||||
Reference in New Issue
Block a user