<?php
/**
 * TitanCart WooCommerce Import Module
 *
 * @package TitanCart\Modules\WooImport
 */

namespace TitanCart\Modules\WooImport;

use TitanCart\REST\WooImport\WooImportController;

defined( 'ABSPATH' ) || exit;

class WooImportModule {

    public static function init(): void {
        add_action( 'rest_api_init', [ self::class, 'register_routes' ] );
    }

    public static function register_routes(): void {
        ( new WooImportController() )->register_routes();
    }
}
