<?php
/**
 * TitanCart Calendar Module
 *
 * @package TitanCart\Modules\Calendar
 */

namespace TitanCart\Modules\Calendar;

use TitanCart\REST\Calendar\CalendarController;

defined( 'ABSPATH' ) || exit;

class CalendarModule {

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

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