app/models/api/release_schedule.php (7 lines of code) (raw):
<?php
declare(strict_types=1);
use ReleaseInsights\{Release, Version};
// We may call this file with a specific version number defined in the controller
if (! isset($requested_version)) {
$requested_version = Version::get();
}
return new Release($requested_version)->getSchedule();