jeyroik/extas-api

View on GitHub
src/components/routes/dispatchers/HelpDispatcher.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace extas\components\routes\dispatchers;

use Psr\Http\Message\ResponseInterface;

class HelpDispatcher extends JsonDispatcher
{
    public static array $routesList = [];

    public function execute(): ResponseInterface
    {
        $this->setResponseData(self::$routesList);

        return $this->response;
    }

    public function help(): ResponseInterface
    {
        return $this->execute();
    }
}