示例#1
0
 public function init(\Raptor\Raptor $app)
 {
     //        Place your init code here
     /**
      * This make Raptor load the control panel from the root path
      * if the config mode is debug wich is taken by Raptor like
      * DEV mode
      * 
      * PROBABLY YOU NEED TO REMOVE THIS IN PRODUCTION MODE
      */
     if ($app->config('debug')) {
         $app->any('/', function () use($app) {
             $app->redirect($app->request()->getScriptName() . '/raptor');
         });
     }
 }