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

namespace TitanCart\Modules\Todo;

use TitanCart\REST\Todo\TodoController;

defined( 'ABSPATH' ) || exit;

class TodoModule {

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

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