Creates and configures Express router with comprehensive content management routes.
This function sets up a complete REST API for hierarchical content management, including
courses, levels, sections, and modules. Each content type has full CRUD operations with
appropriate middleware for authentication, authorization, validation, and pagination.
Parameters
prisma: PrismaClient
Prisma database client for dependency injection
Returns Router
Configured Express router with all content management routes
Example
// Create and mount content routes constcontentRoutes = createContentRoutes(prisma); app.use('/api/v1', contentRoutes);
Creates and configures Express router with comprehensive content management routes.
This function sets up a complete REST API for hierarchical content management, including courses, levels, sections, and modules. Each content type has full CRUD operations with appropriate middleware for authentication, authorization, validation, and pagination.