added trailing slashes to the routes

master
Thierry Degeling 2015-08-11 12:45:26 +02:00
parent 45fca6f62f
commit 07887627cc
2 changed files with 6 additions and 6 deletions

View File

@ -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 ) {
@ -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 ) {
@ -104,7 +104,7 @@
});
$ctr->get('/{parameter}', function( $parameter ) use ( $app ) {
$ctr->get('/{parameter}/', function( $parameter ) use ( $app ) {
if ( $parameter == 'json' ) {

View File

@ -28,7 +28,7 @@
});
$ctr->get('/spaceapi', function( ) use ( $app ) {
$ctr->get('/spaceapi/', function( ) use ( $app ) {
return $app->json(
Helpers::spaceAPI( $app )
@ -36,7 +36,7 @@
});
$ctr->get('/openingTimes', function( ) use ( $app ) {
$ctr->get('/openingTimes/', function( ) use ( $app ) {
return $app['twig']->render(
'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 ( file_get_contents( $app[ 'google' ][ 'ical' ] ) , $app[ 'cache' ][ 'calendar' ][ 'ical' ] );