Autarky\Routing\Configuration::mount PHP Method

mount() public method

Mount the configuration.
public mount ( string | null $prefix = null ) : void
$prefix string | null
return void
    public function mount($prefix = null)
    {
        if ($prefix) {
            $this->router->group(['prefix' => $prefix], function () {
                $this->registerRoutes();
            });
        } else {
            $this->registerRoutes();
        }
    }