<?php
/**
 * REST API routes registration for V1.
 *
 * @package Awesomemotive\Rewardswp\Api\V1
 * @since 1.0.0
 */

namespace Awesomemotive\Rewardswp\Api\V1;

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

/**
 * Class Routes
 *
 * @package Awesomemotive\Rewardswp
 */
class Routes {
	/**
	 * Products API controller.
	 *
	 * @var ProductsApi
	 */
	private ProductsApi $products_api;

	/**
	 * Routes constructor.
	 *
	 * @param ProductsApi $products_api
	 */
	public function __construct( ProductsApi $products_api ) {
		$this->products_api = $products_api;
	}

	/**
	 * Register all v1 API routes.
	 */
	public function register_routes() {
		$this->products_api->register_routes();
	}
}
