. namespace core\router; use Slim\App; use Slim\Interfaces\RouteGroupInterface; use Slim\Interfaces\RouteInterface; /** * A route loader. * * @package core * @copyright 2024 Andrew Lyons * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ interface route_loader_interface { /** @var string The route path prefix to use for API calls */ public const ROUTE_GROUP_API = '/api/rest/v2'; /** * Configure all routes for the Application. * * This method returns a set of RouteGroupInterface instances for each route prefix. * * @param App $app The application to configure routes for * @return RouteInterface[]|RouteGroupInterface */ public function configure_routes(App $app): array; }