ac9cecdcdb
- Implemented API routes for fetching and updating novels with missing fields. - Created a client-side interface for moderators to manage novels with missing information. - Added bulk update functionality for missing fields including author, cover, description, and genres. - Integrated genre management with the ability to create new genres on the fly. - Enhanced the home page with a carousel for displaying popular novels.
15 lines
461 B
TypeScript
15 lines
461 B
TypeScript
import { getServerSession } from "next-auth/next"
|
|
import { authOptions } from "@/lib/auth"
|
|
import { redirect } from "next/navigation"
|
|
import { MissingFieldsClient } from "./missing-fields-client"
|
|
|
|
export default async function ModMissingFieldsPage() {
|
|
const session = await getServerSession(authOptions)
|
|
|
|
if (!session || (session.user.role !== "MOD" && session.user.role !== "ADMIN")) {
|
|
redirect("/")
|
|
}
|
|
|
|
return <MissingFieldsClient />
|
|
}
|