winter/modules/system/routes.php
Luke Towers 263ae871b7 More WIP on image resizer
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
2020-08-08 20:17:35 -06:00

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');
});