/programma/schema/periode toegevoegd (was debug-optie)
This commit is contained in:
@@ -195,12 +195,11 @@ QUERY;
|
|||||||
return ['startdate' => $start, 'enddate' => $end, 'schedule' => $schedule];
|
return ['startdate' => $start, 'enddate' => $end, 'schedule' => $schedule];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSchedule($from, $to)
|
public function period($from, $to)
|
||||||
{
|
{
|
||||||
$start = new \DateTimeImmutable(urldecode($from));
|
$start = new \DateTimeImmutable(urldecode($from));
|
||||||
$end = new \DateTimeImmutable(urldecode($to));
|
$end = new \DateTimeImmutable(urldecode($to));
|
||||||
$this->createSchedule($start, $end, true);
|
return $this->createSchedule($start, $end, isset($_GET['debug']));
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -42,9 +42,9 @@ $app->get('programma/schema/onair', 'ProgramController@onair' );
|
|||||||
$app->get('programma/schema/nustraks', 'ProgramController@comingup' );
|
$app->get('programma/schema/nustraks', 'ProgramController@comingup' );
|
||||||
$app->get('programma/schema/week[/{shiftWeeks:-?\d+}]', 'ProgramController@schedule' );
|
$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/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/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('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');
|
$app->get('kerkdienst', 'KerkdienstController@get');
|
||||||
|
|||||||
Reference in New Issue
Block a user