WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...

    Function createContentRoutes

    • 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

      // Create and mount content routes
      const contentRoutes = createContentRoutes(prisma);
      app.use('/api/v1', contentRoutes);