classes/Routing/Router.php
public function registerAll()
    {
        // Public routes
        Route::group([
            'prefix' => $this->dir,
            'middleware' => 'decoy.public',
        ], function () {
            $this->registerLogin();
            $this->registerResetPassword();
        });

        // Routes that don't require auth or CSRF
        Route::group([
            'prefix' => $this->dir,
            'middleware' => 'decoy.endpoint',
        ], function () {
            $this->registerExternalEndpoints();
        });

        // Protected, admin routes
        Route::group([
            'prefix' => $this->dir,
            'middleware' => 'decoy.protected',
        ], function () {
            $this->registerAdmins();
            $this->registerCommands();
            $this->registerElements();
            $this->registerEncode();
            $this->registerRedactor();
            $this->registerWorkers();
            $this->registerWildcard(); // Must be last
        });
    }
public function registerAll()
    {
        // Public routes
        Route::group([
            'prefix' => $this->dir,
            'middleware' => 'decoy.public',
        ], function () {
            $this->registerLogin();
            $this->registerResetPassword();
        });

        // Routes that don't require auth or CSRF
        Route::group([
            'prefix' => $this->dir,
            'middleware' => 'decoy.endpoint',
        ], function () {
            $this->registerExternalEndpoints();
        });

        // Protected, admin routes
        Route::group([
            'prefix' => $this->dir,
            'middleware' => 'decoy.protected',
        ], function () {
            $this->registerAdmins();
            $this->registerCommands();
            $this->registerElements();
            $this->registerEncode();
            $this->registerRedactor();
            $this->registerWorkers();
            $this->registerWildcard(); // Must be last
        });
    }
public function registerAll ( ) { // Public routes Route :: group ( [ 'prefix' => $ this -> dir , 'middleware' => 'decoy.public' , ] , function ( ) { $ this -> registerLogin ( ) ; $ this -> registerResetPassword ( ) ; } ) ; // Routes that don't require auth or CSRF Route :: group ( [ 'prefix' => $ this -> dir , 'middleware' => 'decoy.endpoint' , ] , function ( ) { $ this -> registerExternalEndpoints ( ) ; } ) ; // Protected, admin routes Route :: group ( [ 'prefix' => $ this -> dir , 'middleware' => 'decoy.protected' , ] , function ( ) { $ this -> registerAdmins ( ) ; $ this -> registerCommands ( ) ; $ this -> registerElements ( ) ; $ this -> registerEncode ( ) ; $ this -> registerRedactor ( ) ; $ this -> registerWorkers ( ) ; $ this -> registerWildcard ( ) ; // Must be last } ) ; }
Register all routes

@return void
Register all routes