From faf5a76168b3efd40cca07719b9fb2ca6f7d34c0 Mon Sep 17 00:00:00 2001 From: Bjverde Date: Sat, 30 Jul 2022 18:39:18 -0300 Subject: [PATCH] =?UTF-8?q?:bug:=20#118=20corre=C3=A7=C3=A3o=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/CreateApiRoutesCall.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/CreateApiRoutesCall.class.php b/controllers/CreateApiRoutesCall.class.php index 8cc6bcc..a8c03ca 100644 --- a/controllers/CreateApiRoutesCall.class.php +++ b/controllers/CreateApiRoutesCall.class.php @@ -151,7 +151,7 @@ public function addIndexRoutes() $this->addLine('$urlChamada = $urlChamada.\'api/\';'); $this->addLine('// Define app routes'); $this->addLine('$app->get($urlChamada, function (Request $request, Response $response, $args) use ($app) {'); - $this->addLine(ESP.'$url = \ServerHelper::getCurrentUrl();'); + $this->addLine(ESP.'$url = \ServerHelper::getFullServerName();'); $this->addLine(ESP.'$routes = $app->getRouteCollector()->getRoutes();'); $this->addLine(ESP.'$routesArray = array();'); $this->addLine(ESP.'foreach ($routes as $route) {');