src/Providers/Api/ApiRouteServiceProvider.php
protected function buildRoutesForAuth(Router $router)
    {
        $auth = $this->core->auth();

        $router->group(
            [
                'prefix' => 'auth',
            ],
            function (Router $router) use ($auth) {

                $router->{$this->getLoginMethod()}($this->getLoginPath(), $auth->getApiRouteLoginAction());
                $router->{$this->getLogoutMethod()}($this->getLogoutPath(), $auth->getApiRouteLogoutAction());
            }
        );
    }
protected function buildRoutesForAuth(Router $router)
    {
        $auth = $this->core->auth();

        $router->group(
            [
                'prefix' => 'auth',
            ],
            function (Router $router) use ($auth) {

                $router->{$this->getLoginMethod()}($this->getLoginPath(), $auth->getApiRouteLoginAction());
                $router->{$this->getLogoutMethod()}($this->getLogoutPath(), $auth->getApiRouteLogoutAction());
            }
        );
    }
protected function buildRoutesForAuth ( Router $ router ) { $ auth = $ this -> core -> auth ( ) ; $ router -> group ( [ 'prefix' => 'auth' , ] , function ( Router $ router ) use ( $ auth ) { $ router -> { $ this -> getLoginMethod ( ) } ( $ this -> getLoginPath ( ) , $ auth -> getApiRouteLoginAction ( ) ) ; $ router -> { $ this -> getLogoutMethod ( ) } ( $ this -> getLogoutPath ( ) , $ auth -> getApiRouteLogoutAction ( ) ) ; } ) ; }
Builds up routes for API authorization in the given router context.

@param Router $router
Builds up routes for API authorization in the given router context .