mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Refactored resizer URLs to support custom disks, switched to using a signed version of the resized image's URL as the identifier for the configuration
17 lines
414 B
PHP
17 lines
414 B
PHP
<?php
|
|
|
|
/**
|
|
* Register System routes before all user routes.
|
|
*/
|
|
App::before(function ($request) {
|
|
/*
|
|
* Combine JavaScript and StyleSheet assets
|
|
*/
|
|
Route::any('combine/{file}', 'System\Classes\SystemController@combine');
|
|
|
|
/*
|
|
* Resize image assets
|
|
* Requires ?t={encodedUrl} to be present
|
|
*/
|
|
Route::get('resizer/{identifier}', 'System\Classes\SystemController@resizer');
|
|
}); |