diff --git a/flight/commands/RouteCommand.php b/flight/commands/RouteCommand.php index bbcf52e..1b2691d 100644 --- a/flight/commands/RouteCommand.php +++ b/flight/commands/RouteCommand.php @@ -41,7 +41,8 @@ class RouteCommand extends AbstractBaseCommand { $io = $this->app()->io(); - if (isset($this->config['index_root']) === false) { + + if (isset($this->config['runway']['index_root']) === false) { $io->error('index_root not set in .runway-config.json', true); return; } @@ -50,7 +51,7 @@ class RouteCommand extends AbstractBaseCommand $cwd = getcwd(); - $index_root = $cwd . '/' . $this->config['index_root']; + $index_root = $cwd . '/' . $this->config['runway']['index_root']; // This makes it so the framework doesn't actually execute Flight::map('start', function () {