src/CatLab/Accounts/Module.php
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');
    }
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');
    }
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' ) ; }
Register the routes required for this module.
@param Router $router
@return mixed
Register the routes required for this module .