added trailing slashes to the routes
parent
45fca6f62f
commit
07887627cc
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$ctr->get('/{year}/{month}', function( $year, $month ) use ( $app ) {
|
$ctr->get('/{year}/{month}/', function( $year, $month ) use ( $app ) {
|
||||||
|
|
||||||
if ( strpos( $month, '.' ) !== false ) {
|
if ( strpos( $month, '.' ) !== false ) {
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$ctr->get('/{year}/{month}/{day}', function( $year, $month, $day ) use ( $app ) {
|
$ctr->get('/{year}/{month}/{day}/', function( $year, $month, $day ) use ( $app ) {
|
||||||
|
|
||||||
if ( strpos( $day, '.' ) !== false ) {
|
if ( strpos( $day, '.' ) !== false ) {
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$ctr->get('/{parameter}', function( $parameter ) use ( $app ) {
|
$ctr->get('/{parameter}/', function( $parameter ) use ( $app ) {
|
||||||
|
|
||||||
if ( $parameter == 'json' ) {
|
if ( $parameter == 'json' ) {
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$ctr->get('/spaceapi', function( ) use ( $app ) {
|
$ctr->get('/spaceapi/', function( ) use ( $app ) {
|
||||||
|
|
||||||
return $app->json(
|
return $app->json(
|
||||||
Helpers::spaceAPI( $app )
|
Helpers::spaceAPI( $app )
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$ctr->get('/openingTimes', function( ) use ( $app ) {
|
$ctr->get('/openingTimes/', function( ) use ( $app ) {
|
||||||
|
|
||||||
return $app['twig']->render(
|
return $app['twig']->render(
|
||||||
'openingTimes.twig',
|
'openingTimes.twig',
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$ctr->get('/scrape', function() use ( $app ) {
|
$ctr->get('/scrape/', function() use ( $app ) {
|
||||||
|
|
||||||
Helpers::saveFile ( json_encode( Level2::getJSONCalendar( $app ) ) , $app[ 'cache' ][ 'calendar' ][ 'json' ] );
|
Helpers::saveFile ( json_encode( Level2::getJSONCalendar( $app ) ) , $app[ 'cache' ][ 'calendar' ][ 'json' ] );
|
||||||
Helpers::saveFile ( file_get_contents( $app[ 'google' ][ 'ical' ] ) , $app[ 'cache' ][ 'calendar' ][ 'ical' ] );
|
Helpers::saveFile ( file_get_contents( $app[ 'google' ][ 'ical' ] ) , $app[ 'cache' ][ 'calendar' ][ 'ical' ] );
|
||||||
|
|
Loading…
Reference in New Issue