Skip to content

Commit

Permalink
🐛 #118 correção url
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Jul 30, 2022
1 parent 62ed525 commit faf5a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/CreateApiRoutesCall.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {');
Expand Down

0 comments on commit faf5a76

Please sign in to comment.