<?php

namespace Planaday\Endpoints;

use Planaday\Platform\PlatformAbstraction\DataHandler;
use Planaday\Utility\Endpoints\ApiController;
use Planaday\Utility\Endpoints\ApiEndpoint;
use Planaday\Utility\Endpoints\BackofficeEndpoint;

#[ApiController(1, "data")]
class DataHandlerEndpoints {
	public function __construct(
		protected DataHandler $dataHandler
	) {}

	#[BackofficeEndpoint]
	#[ApiEndpoint('support-string')]
	public function getSupportString(): array{
		return $this->dataHandler->getSupportObject();
	}
}