/programma/schema/periode toegevoegd (was debug-optie)

This commit is contained in:
2019-10-22 21:58:18 +02:00
parent d27de22d48
commit 1b4eabb75f
2 changed files with 3 additions and 4 deletions

View File

@@ -195,12 +195,11 @@ QUERY;
return ['startdate' => $start, 'enddate' => $end, 'schedule' => $schedule];
}
public function testSchedule($from, $to)
public function period($from, $to)
{
$start = new \DateTimeImmutable(urldecode($from));
$end = new \DateTimeImmutable(urldecode($to));
$this->createSchedule($start, $end, true);
return "";
return $this->createSchedule($start, $end, isset($_GET['debug']));
}

View File

@@ -42,9 +42,9 @@ $app->get('programma/schema/onair', 'ProgramController@onair' );
$app->get('programma/schema/nustraks', 'ProgramController@comingup' );
$app->get('programma/schema/week[/{shiftWeeks:-?\d+}]', 'ProgramController@schedule' );
$app->get('programma/schema/maand/{year:20\d\d}/{month:\d\d?}', 'ProgramController@month' );
$app->get('programma/schema/periode/{from:\d\d\d\d-\d\d?-\d\d?}/{to:\d\d\d\d-\d\d?-\d\d?}', 'ProgramController@period' );
$app->get('programma/details/{id:\d+}', 'ProgramController@details' );
$app->get('programma/schema/test/{from}/{to}', 'ProgramController@testSchedule' );
$app->get('programma/download/{year:20\d\d}/{month:\d\d?}/{day:\d\d?}/{hour:\d\d?}/{duration:\d\d?}', 'PodcastController@complete');
$app->get('kerkdienst', 'KerkdienstController@get');