<?php

namespace SugarCalendarBookings\Ajax;

use SugarCalendarBookings\Support\Ajax\AbstractRoutes;
use SugarCalendarBookings\Availability\AvailabilityController;

/**
 * Common AJAX routes.
 *
 * @since 1.0.0
 */
class CommonRoutes extends AbstractRoutes {

	/**
	 * Register the routes.
	 *
	 * @since 1.0.0
	 */
	protected function register() {

		// Availability.
		$this->route( 'availability_get_slots', [ AvailabilityController::class, 'get_slots' ] )->public();
	}
}
