コード例 #1
0
 /**
  * Register the routes required for this module.
  * @param Router $router
  * @return void
  */
 public function setRoutes(Router $router)
 {
     $router->match('GET|POST', $this->routepath . '/login', '\\CatLab\\OpenIDClient\\Controllers\\LoginController@login');
     $router->match('GET|POST', $this->routepath . '/login/next', '\\CatLab\\OpenIDClient\\Controllers\\LoginController@next');
     $router->get($this->routepath . '/logout', '\\CatLab\\OpenIDClient\\Controllers\\LoginController@logout');
     $router->get($this->routepath . '/status', '\\CatLab\\OpenIDClient\\Controllers\\LoginController@status');
 }
コード例 #2
0
ファイル: Module.php プロジェクト: CatLabInteractive/1brood
 /**
  * Register the routes required for this module.
  * @param \Neuron\Router $router
  * @return void
  */
 public function setRoutes(\Neuron\Router $router)
 {
     $router->get('/', 'Pages_Home@getHTML');
     $router->get('/about/{a?}/{b?}/{c?}/{d?}', 'Pages_About@getHTML');
     $router->match('POST|GET', '/home/{a?}/{b?}/{c?}/{d?}', 'Pages_Home@getHTML');
     $router->match('POST|GET', '/register/{a?}/{b?}/{c?}/{d?}', 'Pages_Register@getHTML');
     $router->match('POST|GET', '/welcome/{a?}/{b?}/{c?}/{d?}', 'Pages_Welcome@getHTML');
     $router->match('POST|GET', '/company/{a?}/{b?}/{c?}/{d?}', 'Pages_Company@getHTML');
     $router->match('POST|GET', '/donate/{a?}/{b?}/{c?}/{d?}', 'Pages_Donate@getHTML');
     $router->match('POST|GET', '/order/{a?}/{b?}/{c?}/{d?}', 'Pages_Order@getHTML');
     $router->match('POST|GET', '/shop/{a?}/{b?}/{c?}/{d?}', 'Pages_Shop@getHTML');
     $router->match('POST|GET', '/lostPassword/{a?}/{b?}/{c?}/{d?}', 'Pages_LostPassword@getHTML');
 }
コード例 #3
0
ファイル: Module.php プロジェクト: catlabinteractive/accounts
 /**
  * Register the routes required for this module.
  * @param Router $router
  * @return mixed
  */
 public function setRoutes(Router $router)
 {
     // Filter
     $router->addFilter('authenticated', array($this, 'routerVerifier'));
     // Routes
     $router->match('GET|POST', $this->routepath . '/login/{authenticator}', '\\CatLab\\Accounts\\Controllers\\LoginController@authenticator');
     $router->match('GET', $this->routepath . '/login', '\\CatLab\\Accounts\\Controllers\\LoginController@login');
     $router->match('GET', $this->routepath . '/welcome', '\\CatLab\\Accounts\\Controllers\\LoginController@welcome')->filter('authenticated');
     $router->match('GET|POST', $this->routepath . '/notverified', '\\CatLab\\Accounts\\Controllers\\LoginController@requiresVerification');
     $router->match('GET', $this->routepath . '/logout', '\\CatLab\\Accounts\\Controllers\\LoginController@logout');
     $router->match('GET', $this->routepath . '/cancel', '\\CatLab\\Accounts\\Controllers\\LoginController@cancel');
     $router->match('GET|POST', $this->routepath . '/register/{authenticator}', '\\CatLab\\Accounts\\Controllers\\RegistrationController@authenticator');
     $router->match('GET|POST', $this->routepath . '/register', '\\CatLab\\Accounts\\Controllers\\RegistrationController@register');
     $router->get($this->routepath . '/verify/{id}', '\\CatLab\\Accounts\\Controllers\\LoginController@verify');
 }