public function map(Router $router)
 {
     $router->group(BwRouter::getParameters('guest'), function (Router $router) {
         require __DIR__ . '/../../routes/login.php';
     });
     $router->group(BwRouter::getParameters('default'), function (Router $router) {
         require __DIR__ . '/../../routes/admin.php';
     });
 }
 public function map(Router $router)
 {
     $router->group(BwRouter::getParameters('guest'), function (Router $router) {
         require __DIR__ . '/../../routes/login.php';
     });
     $router->group(BwRouter::getParameters('default'), function (Router $router) {
         require __DIR__ . '/../../routes/admin.php';
         // relationships
         $router->group(['prefix' => 'relationships'], function (Router $router) {
             $relationships = \BWAdmin::get('relationships')->get();
             foreach ($relationships as $relations) {
                 if (method_exists($relations['type'], 'getManagerRouterFile')) {
                     require $relations['type']::getManagerRouterFile();
                 }
             }
         });
     });
 }