src/Charcoal/Admin/AdminModule.php
public function setupRoutes()
    {
        if ($this->routeManager === null) {
            parent::setupRoutes();

            // Serve the Admin's "Not Found" handler for the Admin's route group.
            $this->app()->any('{catchall:.*}', 'notFoundHandler');
        }

        return $this;
    }
public function setupRoutes()
    {
        if ($this->routeManager === null) {
            parent::setupRoutes();

            // Serve the Admin's "Not Found" handler for the Admin's route group.
            $this->app()->any('{catchall:.*}', 'notFoundHandler');
        }

        return $this;
    }
public function setupRoutes ( ) { if ( $ this -> routeManager === null ) { parent :: setupRoutes ( ) ; // Serve the Admin's "Not Found" handler for the Admin's route group. $ this -> app ( ) -> any ( '{catchall:.*}' , 'notFoundHandler' ) ; } return $ this ; }
Set up the module's routes and handlers.

@return AdminModule Chainable
Set up the module s routes and handlers .