<?php

/**
 * Content Craft AI - Article Generator API
 */

if (!defined('ABSPATH')) {
    exit;
}

/**
 * This file depends on WordPress core functionality.
 * The following constants and types are defined by WordPress and will be available at runtime:
 * - CONTENT_CRAFT_AI_PLUGIN_PATH: Plugin path constant defined in the main plugin file
 */

// Load core controllers
require_once CONTENT_CRAFT_AI_PLUGIN_PATH . 'app/controllers/article-generator/BaseController.php';
require_once CONTENT_CRAFT_AI_PLUGIN_PATH . 'app/controllers/article-generator/ArticleGenerationController.php';
require_once CONTENT_CRAFT_AI_PLUGIN_PATH . 'app/controllers/article-generator/StatusCheckController.php';
require_once CONTENT_CRAFT_AI_PLUGIN_PATH . 'app/controllers/article-generator/ScheduledArticleController.php';

// Load base API class
require_once __DIR__ . '/ApiBase.php';

// Load API handlers
require_once __DIR__ . '/single-article.php';
require_once __DIR__ . '/bulk-article.php';
require_once __DIR__ . '/status.php';
require_once __DIR__ . '/scheduled-articles.php';
require_once __DIR__ . '/notifications.php';

// Load route definitions
require_once __DIR__ . '/routes.php';
