diff --git a/src/routes.php b/src/routes.php index 76df029..a1f7757 100755 --- a/src/routes.php +++ b/src/routes.php @@ -1,11 +1,24 @@ getPathInfo(), '/'), '/')) { + $schema = '/' . $schema; + if ($config->get('graphiql.route.uri') != $schema) { + $config->set('graphiql.route.uri', $config->get('graphiql.route.uri') . $schema); + $config->set('graphiql.endpoint', $config->get('graphiql.endpoint') . $schema); + } +} + if ($routeConfig = $config->get('graphiql.route')) { /** @var \Illuminate\Contracts\Routing\Registrar|\Laravel\Lumen\Routing\Router $router */ $router = app('router'); diff --git a/views/index.blade.php b/views/index.blade.php index 838e755..d785a00 100644 --- a/views/index.blade.php +++ b/views/index.blade.php @@ -1,6 +1,5 @@ -