mirror of
https://github.com/Intervention/image.git
synced 2025-08-20 12:41:23 +02:00
bugfix
This commit is contained in:
@@ -78,17 +78,11 @@ class ImageServiceProviderLaravel5 extends ServiceProvider
|
|||||||
|
|
||||||
$filename_pattern = '[ \w\\.\\/\\-]+';
|
$filename_pattern = '[ \w\\.\\/\\-]+';
|
||||||
|
|
||||||
// route to access original file
|
|
||||||
$app['router']->get(
|
|
||||||
config('imagecache.route').'/original/{filename}',
|
|
||||||
'Intervention\Image\ImageCacheController@getOriginal'
|
|
||||||
)->where(array('filename' => $filename_pattern));
|
|
||||||
|
|
||||||
// route to access template applied image file
|
// route to access template applied image file
|
||||||
$app['router']->get(
|
$app['router']->get(config('imagecache.route').'/{template}/{filename}', array(
|
||||||
config('imagecache.route').'/{template}/{filename}',
|
'uses' => 'Intervention\Image\ImageCacheController@getResponse',
|
||||||
'Intervention\Image\ImageCacheController@getImage'
|
'as' => 'imagecache'
|
||||||
)->where(array('filename' => $filename_pattern));
|
))->where(array('filename' => $filename_pattern));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user