<?php

/**
 * Content Craft AI - Title to Article API
 */

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

// Load base API class (for external API communication)
require_once CONTENT_CRAFT_AI_PLUGIN_PATH . 'app/api/article-generator/ApiBase.php';

// Load API handler for external API communication
require_once __DIR__ . '/title-generator.php';

// Load controllers
require_once CONTENT_CRAFT_AI_PLUGIN_PATH . 'app/controllers/title-article/TitleArticleController.php';
require_once CONTENT_CRAFT_AI_PLUGIN_PATH . 'app/controllers/title-article/TitleGeneratorController.php';

// Load WordPress REST API routes
require_once __DIR__ . '/routes.php';
