Schema per maand
This commit is contained in:
@@ -292,4 +292,10 @@ QUERY;
|
|||||||
|
|
||||||
return response()->json($this->createSchedule($start, $einde));
|
return response()->json($this->createSchedule($start, $einde));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function month($year, $month) {
|
||||||
|
$start = new \DateTimeImmutable($year . '-' . $month . '-01');
|
||||||
|
$einde = $start->add(\DateInterval::createFromDateString('1 month'));
|
||||||
|
return response()->json($this->createSchedule($start, $einde));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ $app->get('podcast/stream/{id:\d+}/{title}', 'PodcastController@stream' );
|
|||||||
$app->get('programma/schema/onair', 'ProgramController@onair' );
|
$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/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/schema/test/{from}/{to}', 'ProgramController@testSchedule' );
|
||||||
|
|||||||
Reference in New Issue
Block a user