PHP Classes

File: modules/system/routes.php

Recommend this page to a friend!
  Packages of Luke Towers   Winter   modules/system/routes.php   Download  
File: modules/system/routes.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Winter
Content management system that uses MVC
Author: By
Last change:
Date: 6 months ago
Size: 768 bytes
 

Contents

Class file image Download
<?php

/**
 * Register System routes before all user routes.
 */

/**
 * @event system.beforeRoute
 * Fires before system routes get added
 *
 * Example usage:
 *
 * Event::listen('system.beforeRoute', function () {
 * // your code here
 * });
 *
 */
Event::fire('system.beforeRoute');

/*
 * Combine JavaScript and StyleSheet assets
 */
Route::any('combine/{file}', 'System\Classes\SystemController@combine');

/*
 * Resize image assets
 */
Route::get('resizer/{identifier}/{encodedUrl}', 'System\Classes\SystemController@resizer');

/**
 * @event system.route
 * Fires after system routes get added
 *
 * Example usage:
 *
 * Event::listen('system.route', function () {
 * // your code here
 * });
 *
 */
Event::fire('system.route');